TSI_Config/dc_outputs.h

33 lines
584 B
C
Raw Normal View History

2025-07-28 20:55:48 +08:00
#ifndef DC_OUTPUTS_H
#define DC_OUTPUTS_H
#include <QWidget>
2025-08-04 12:25:12 +08:00
#include "data_config.h"
2025-07-28 20:55:48 +08:00
namespace Ui {
class DC_Outputs;
}
class DC_Outputs : public QWidget
{
Q_OBJECT
public:
2025-08-04 12:25:12 +08:00
explicit DC_Outputs(int slot_no_,int cardtype,QWidget *parent = nullptr);
2025-07-28 20:55:48 +08:00
~DC_Outputs();
2025-08-04 12:25:12 +08:00
int slot_no;
CardType car_type;
private slots:
void on_comboBox_ch_output_activated(int index);
void output_channel_data(int channel,float minmun,float maxmum);
2025-07-28 20:55:48 +08:00
private:
Ui::DC_Outputs *ui;
2025-08-04 12:25:12 +08:00
void Init();
bool channel_used[4];
int current_index;
2025-07-28 20:55:48 +08:00
};
#endif // DC_OUTPUTS_H