123456789101112131415161718192021222324252627282930 |
- #ifndef __MONITORING_H
- #define __MONITORING_H
- #include <stdbool.h>
- // Слово ошибок (индекс)
- typedef enum
- {
- ERR_WORD_1 = 0,
- ERR_WORD_2,
- ERR_WORD_3,
- ERR_WORD_4,
-
- } err_word_t;
- // Коды ошибок модуля
- typedef enum
- {
- ERR_OK = 0,
- ADC_ERR,
-
- } err_code_t;
- void mon_set_err(err_word_t word_index, err_code_t err_code, bool state);
- #endif // __MONITORING_H
|