#ifndef RS485_POWERCTRL_H
|
#define RS485_POWERCTRL_H
|
|
|
#include "Driver/uart_driver.h"
|
#include "Common/app_define.h"
|
|
|
#define RS485_PwrCtr_DEV_PORT "/dev/ttymxc1"
|
|
|
class RS485_PowerCtrl : public Uart_Driver
|
{
|
Q_OBJECT
|
|
public:
|
RS485_PowerCtrl(const char *dev);
|
|
virtual void run();
|
|
void setPowerCtrlCommParam(const quint8 devaddr);
|
|
bool powerCtrlComm_OK;
|
|
void lock_RS485();
|
void unlock_RS485();
|
|
|
private:
|
int fd;
|
|
quint8 dev_addr;
|
|
bool RS485_RUN_EN;
|
|
|
QMutex RS485_mutex;
|
|
|
|
signals:
|
void sendModTestDataSignal(MOD_TEST_DATA);
|
|
};
|
|
#endif // RS485_POWERCTRL_H
|