Calibration_Stand/ui/Inc/error.h

22 lines
463 B
C
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef ERROR_H
#define ERROR_H
#include <stdint.h>
#include <gtk/gtk.h>
// Определение структуры для информации об ошибках
typedef struct {
uint8_t code;
const char *description;
} ErrorInfo;
#define ERROR_COUNT 4
// Массив всех возможных ошибок
extern ErrorInfo error_list[ERROR_COUNT];
void initialize_error_table();
void update_error_table(uint8_t error_code);
#endif //ERROR_H