12345678910111213141516171819202122232425262728293031323334 |
- #ifndef _MODULE_PRIMARY_COMM_H_
- #define _MODULE_PRIMARY_COMM_H_
- #include <stdint.h>
- #define log_info(format, args...) StoreLogMsg("[%s:%d][%s][Info] "format, __FILE__, __LINE__, __FUNCTION__, ##args)
- #define log_warn(format, args...) StoreLogMsg("[%s:%d][%s][Warn] "format, __FILE__, __LINE__, __FUNCTION__, ##args)
- #define log_error(format, args...) StoreLogMsg("[%s:%d][%s][Error] "format, __FILE__, __LINE__, __FUNCTION__, ##args)
- typedef struct StChillerInfo {
- uint8_t ChillerSwitch;
- uint32_t ChillerOnTime;
- uint8_t Reserved[3];
- } ChillerInfo;
- typedef struct StLedConfig {
-
- uint8_t LeftButtonLed: 1;
- uint8_t RightButtonLed: 1;
- uint8_t GreenLED: 1;
- uint8_t YellowLED: 1;
- uint8_t RedLED: 1;
- uint8_t SystemLed4: 1;
- uint8_t AcContactor: 1;
- uint8_t Reserved: 1;
- } LedConfig;
- int StoreLogMsg(const char *fmt, ...);
- #endif
|