Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
settings More...
Data Structures | |
struct | settings_store |
Backend handler node for storage handling. More... | |
struct | settings_load_arg |
Arguments for data loading. More... | |
struct | settings_store_itf |
Backend handler functions. More... | |
Functions | |
void | settings_src_register (struct settings_store *cs) |
Register a backend handler acting as source. | |
void | settings_dst_register (struct settings_store *cs) |
Register a backend handler acting as destination. | |
struct settings_handler_static * | settings_parse_and_lookup (const char *name, const char **next) |
Parses a key to an array of elements and locate corresponding module handler. | |
int | settings_call_set_handler (const char *name, size_t len, settings_read_cb read_cb, void *read_cb_arg, const struct settings_load_arg *load_arg) |
Calls settings handler. | |
settings
int settings_call_set_handler | ( | const char * | name, |
size_t | len, | ||
settings_read_cb | read_cb, | ||
void * | read_cb_arg, | ||
const struct settings_load_arg * | load_arg | ||
) |
#include <zephyr/settings/settings.h>
Calls settings handler.
[in] | name | The name of the data found in the backend. |
[in] | len | The size of the data found in the backend. |
[in] | read_cb | Function provided to read the data from the backend. |
[in,out] | read_cb_arg | Arguments for the read function provided by the backend. |
[in,out] | load_arg | Arguments for data loading. |
void settings_dst_register | ( | struct settings_store * | cs | ) |
#include <zephyr/settings/settings.h>
Register a backend handler acting as destination.
cs | Backend handler node containing handler information. |
struct settings_handler_static * settings_parse_and_lookup | ( | const char * | name, |
const char ** | next | ||
) |
#include <zephyr/settings/settings.h>
Parses a key to an array of elements and locate corresponding module handler.
[in] | name | in string format |
[out] | next | remaining of name after matched handler |
void settings_src_register | ( | struct settings_store * | cs | ) |
#include <zephyr/settings/settings.h>
Register a backend handler acting as source.
cs | Backend handler node containing handler information. |