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.2 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);
// DT600N = 1, // 大空间消毒机
// DT300N = 2, // 小空间消毒机
// DT300W = 3, // 管道式消毒机
// DT100N = 4, // 手持拉杆箱消毒机
// EX_H2O2_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