monitoring.h 300 B

12345678910111213141516171819202122232425
  1. #ifndef __MONITORING_H
  2. #define __MONITORING_H
  3. #include <stdbool.h>
  4. // Коды ошибок модуля
  5. typedef enum
  6. {
  7. ERR_OK = 0 << 1,
  8. ADC_ERR = 1 << 1,
  9. } err_code_t;
  10. void mon_set_err(err_code_t err_code, bool state);
  11. extern uint32_t mon_state;
  12. #endif // __MONITORING_H