|
PixelKey
NeoPixel USB Key
|
Functions | |
| config_api_t const * | config (void) |
| Get a pointer to the current API instance. More... | |
| config_data_t const * | config_default (void) |
| Get a pointer to the default configuration values. More... | |
| config_data_t const * | config_get_or_default (void) |
| Gets a pointer to the saved configuration values or the defaults if an error occurs. More... | |
| void | config_register (config_api_t const *p_instance) |
| Register an API to be used as the current instance. More... | |
| pixelkey_error_t | config_validate (void) |
| Validates and updates NV memory config if needed; can only be called after config_register. | |
Variables | |
| static config_api_t const * | registered_api = NULL |
| Currently registered API instance. | |
| static config_data_t const | config_data_default |
| Default configuration data. More... | |
| config_api_t const * config | ( | void | ) |
Get a pointer to the current API instance.
| config_data_t const * config_default | ( | void | ) |
Get a pointer to the default configuration values.
|
inline |
Gets a pointer to the saved configuration values or the defaults if an error occurs.
| void config_register | ( | config_api_t const * | p_instance | ) |
Register an API to be used as the current instance.
| [in] | p_instance | Pointer to the API instance. |
|
static |
Default configuration data.