monitoring.h 457 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __MONITORING_H
  2. #define __MONITORING_H
  3. #include <stdbool.h>
  4. // Коды ошибок модуля
  5. typedef enum
  6. {
  7. MON_ERR_OK = 0 << 1,
  8. MON_RTC = 1 << 1,
  9. MON_EEPROM = 1 << 2,
  10. MON_CHN = 1 << 3,
  11. MON_ADC_EXT = 1 << 4,
  12. MON_DAC = 1 << 5,
  13. MON_ADC_INT = 1 << 6,
  14. } monitor_err_code_t;
  15. void mon_set_err(monitor_err_code_t err_code, uint8_t state);
  16. extern uint32_t mon_state;
  17. #endif // __MONITORING_H