Firmware SDK
|
Library for saving and loading configuration to EEPROM. More...
Functions | |
void | twr_config_init (uint64_t signature, void *config, size_t size, void *init_config) |
Initialize and load the config from EEPROM. More... | |
void | twr_config_reset (void) |
Reset EEPROM configuration to zeros or init_config. | |
bool | twr_config_load (void) |
Load EEPROM configuration. More... | |
bool | twr_config_save (void) |
Save configuration to EEPROM. More... | |
Library for saving and loading configuration to EEPROM.
void twr_config_init | ( | uint64_t | signature, |
void * | config, | ||
size_t | size, | ||
void * | init_config | ||
) |
Initialize and load the config from EEPROM.
[in] | signature | Any number specifying current configuration version. |
[in] | config | Pointer to configuration structure |
[in] | size | Size of the configuration structure |
[in] | init_config | Pointer to default configoration or null |
Definition at line 39 of file twr_config.c.
bool twr_config_load | ( | void | ) |
Load EEPROM configuration.
Definition at line 66 of file twr_config.c.
Referenced by twr_config_init().
bool twr_config_save | ( | void | ) |
Save configuration to EEPROM.
Definition at line 95 of file twr_config.c.
Referenced by twr_config_init().