![]() |
RAFW Flexible Software Package Documentation
Release v2.0.1
|
|
Interface for accessing MAP_PERSISTANT_W Storage.
This section defines the API for the MAP_PERSISTANT_W (Storage) Module. The MAP_PERSISTANT_W Module provides interface to control, access, write to persistant storage .
Data Structures | |
| struct | map_persistant_w_api_t |
| struct | map_persistant_w_instance_t |
Typedefs | |
| typedef void | map_persistant_w_ctrl_t |
| struct map_persistant_w_api_t |
MAP_PERSISTANT_W driver structure. General MAP_PERSISTANT_W functions implemented at the HAL layer will follow this API.
Data Fields | |
| fsp_err_t(* | open )(map_persistant_w_ctrl_t *const p_ctrl) |
| fsp_err_t(* | close )(map_persistant_w_ctrl_t *const p_ctrl) |
| fsp_err_t(* | read_uint )(map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, void *val, uint16_t *data_length) |
| fsp_err_t(* | write_uint )(map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, void *val, uint32_t len) |
| fsp_err_t(* | read_int )(map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, int *val) |
| fsp_err_t(* | write_int )(map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, int val) |
| fsp_err_t(* | read_string )(map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, char **val) |
| fsp_err_t(* | write_string )(map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, const char *val) |
| fsp_err_t(* | erase )(map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name) |
| fsp_err_t(* | erase_group )(map_persistant_w_ctrl_t *const p_ctrl, const char *group) |
| fsp_err_t(* map_persistant_w_api_t::open) (map_persistant_w_ctrl_t *const p_ctrl) |
Open the MAP module. Add constraint for RAM
| [in] | p_ctrl | Pointer to MAP handle. |
| fsp_err_t(* map_persistant_w_api_t::close) (map_persistant_w_ctrl_t *const p_ctrl) |
Close the MAP module.
| [in] | p_ctrl | Pointer to MAP device handle |
| FSP_SUCCESS | Configuration was successful. |
| fsp_err_t(* map_persistant_w_api_t::read_uint) (map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, void *val, uint16_t *data_length) |
Close the MAP module.
| [in] | p_ctrl | Pointer to MAP device handle |
| [in] | group | Group of the variable |
| [in] | name | Name of the variable |
| [in,out] | val | Updates the return value |
| FSP_SUCCESS | Configuration was successful. |
| fsp_err_t(* map_persistant_w_api_t::write_uint) (map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, void *val, uint32_t len) |
Close the MAP module.
| [in] | p_ctrl | Pointer to MAP device handle |
| [in] | group | Group of the variable |
| [in] | name | Name of the variable |
| [in] | val | Value to be updated |
| FSP_SUCCESS | Configuration was successful. |
| fsp_err_t(* map_persistant_w_api_t::read_int) (map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, int *val) |
Close the MAP module.
| [in] | p_ctrl | Pointer to MAP device handle |
| [in] | group | Group of the variable |
| [in] | name | Name of the variable |
| [in,out] | val | Updates the return value |
| FSP_SUCCESS | Configuration was successful. |
| fsp_err_t(* map_persistant_w_api_t::write_int) (map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, int val) |
Close the MAP module.
| [in] | p_ctrl | Pointer to MAP device handle |
| [in] | group | Group of the variable |
| [in] | name | Name of the variable |
| [in] | val | Value to be updated |
| FSP_SUCCESS | Configuration was successful. |
| fsp_err_t(* map_persistant_w_api_t::read_string) (map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, char **val) |
Close the MAP module.
| [in] | p_ctrl | Pointer to MAP device handle |
| [in] | group | Group of the variable |
| [in] | name | Name of the variable |
| FSP_SUCCESS | Configuration was successful. |
| fsp_err_t(* map_persistant_w_api_t::write_string) (map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name, const char *val) |
Close the MAP module.
| [in] | p_ctrl | Pointer to MAP device handle |
| [in] | group | Group of the variable |
| [in] | name | Name of the variable |
| [in] | val | Value to be updated |
| FSP_SUCCESS | Configuration was successful. |
| fsp_err_t(* map_persistant_w_api_t::erase) (map_persistant_w_ctrl_t *const p_ctrl, const char *group, const char *name) |
Close the MAP module.
| [in] | p_ctrl | Pointer to MAP device handle |
| [in] | group | Group of the variable |
| [in] | name | Name of the variable |
| FSP_SUCCESS | Configuration was successful. |
| fsp_err_t(* map_persistant_w_api_t::erase_group) (map_persistant_w_ctrl_t *const p_ctrl, const char *group) |
Close the MAP module.
| [in] | p_ctrl | Pointer to MAP device handle |
| [in] | group | Group of the variable |
| FSP_SUCCESS | Configuration was successful. |
| struct map_persistant_w_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
| Data Fields | ||
|---|---|---|
| map_persistant_w_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
|
map_persistant_w_cfg_t const *const |
p_cfg | Pointer to the configuration structure for this instance. |
|
map_persistant_w_api_t const *const |
p_api | Pointer to the API structure for this instance. |
| typedef void map_persistant_w_ctrl_t |
MAP control block. Allocate an instance specific control block to pass into the MAP API calls.