Function config_init(config_t *, uint16_t, uint32_t, void *, size_t)¶
- Defined in File config.c
Function Documentation¶
-
bool
config_init
(config_t *config, uint16_t address, uint32_t version, void *default_data, size_t size)¶ Initializes a config instance.
- Return
- true Initialization from EEPROM successful
- Return
- false The default config has been initialized/error reading EEPROM
- Parameters
config
: The config handleaddress
: The handle to read/write the config toversion
: The version string to be used as comparisondefault_data
: The default value for data. Used when the config in eeprom is invalidsize
: Size of the data structure