You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
52 lines
1.3 KiB
#pragma once
|
|
#include "base/appdep.hpp"
|
|
namespace iflytop {
|
|
class PublicBoard {
|
|
ZGPIO m_debugled;
|
|
|
|
public:
|
|
static PublicBoard* ins() {
|
|
static PublicBoard instance;
|
|
return &instance;
|
|
}
|
|
void initialize();
|
|
|
|
int getProjId();
|
|
int getBoardTypeId();
|
|
int getBoardId();
|
|
|
|
void setDebugLightState(bool state);
|
|
void toggleDebugLight();
|
|
|
|
private:
|
|
void debugUartInit(void);
|
|
void canInit();
|
|
};
|
|
|
|
bool isBoardType(int32_t val0);
|
|
bool isBoardType(int32_t val0, int32_t val1);
|
|
bool isBoardType(int32_t val0, int32_t val1, int32_t val2);
|
|
bool isBoardType(int32_t val0, int32_t val1, int32_t val2, int32_t val3);
|
|
|
|
// klarge_space_disinfection_machine = 1, // 大空间消毒机
|
|
// ksmall_space_disinfection_machine = 2, // 小空间消毒机
|
|
// kpipe_disinfection_machine = 3, // 管道式消毒机
|
|
// kdraw_bar_disinfection_box = 4, // 手持拉杆箱消毒机
|
|
// kh2o2_ext_sensor = 5, // 外部H2O2传感器
|
|
|
|
class PORT {
|
|
public:
|
|
static void idtable_init();
|
|
|
|
static bool isLargeSpaceDM();
|
|
static bool isSamllSpaceDM();
|
|
static bool isPipeDM();
|
|
static bool isDrawBarDM();
|
|
static bool isH2O2Sensor();
|
|
static bool isDT600B();
|
|
|
|
static bool isLiquidCtrlBoard();
|
|
static bool isPowerCtrlBoard();
|
|
};
|
|
|
|
} // namespace iflytop
|