123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef SYS_API_H_
- #define SYS_API_H_
- #include <stdbool.h>
- #include <stdint.h>
- #define SN_DEFAULT "0000001"
- #define MB_PASSWORD (uint16_t)1234
- typedef struct
- {
- uint32_t sn;
- uint32_t prod_date;
- uint16_t test_state;
- uint32_t control_word;
- uint32_t crc;
-
- } sys_settings_t;
- bool SYS_BackupInfo(char *mac, char *serial);
- bool SYS_RestoreInfo(sys_settings_t *settings);
- uint32_t SYS_GetCRC(sys_settings_t *settings);
- bool sys_settings_load(sys_settings_t *settings);
- bool sys_save(sys_settings_t *settings);
- void sys_print(sys_settings_t *settings);
- void sys_clear(void);
- #endif
|