monitoring.h 424 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __MONITORING_H
  2. #define __MONITORING_H
  3. #include <stdbool.h>
  4. // Слово ошибок (индекс)
  5. typedef enum
  6. {
  7. ERR_WORD_1 = 0,
  8. ERR_WORD_2,
  9. ERR_WORD_3,
  10. ERR_WORD_4,
  11. } err_word_t;
  12. // Коды ошибок модуля
  13. typedef enum
  14. {
  15. ERR_OK = 0,
  16. ADC_ERR,
  17. } err_code_t;
  18. void mon_set_err(err_word_t word_index, err_code_t err_code, bool state);
  19. #endif // __MONITORING_H