Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
Data Structures | |
struct | pru_pstorage_appdata |
PRU pstorage data container. More... | |
Persistant Storage API functions | |
typedef struct pru_pstorage_appdata | pru_pstorage_appdata_t |
PRU pstorage data container. | |
void | pru_pstorage_sys_evt_handler (uint32_t event) |
Handles system callbacks. More... | |
void | pru_pstorage_write (pru_pstorage_appdata_t *p_appdata) |
Writes application data to flash. More... | |
void | pru_pstorage_status (bool *p_complete, bool *p_success) |
Read status of pstorage operation. More... | |
bool | pru_pstorage_read (pru_pstorage_appdata_t *p_appdata) |
Reads application data from flash. More... | |
void | pru_pstorage_erase_appdata (void) |
Erase all of PRU appdata. | |
void pru_pstorage_sys_evt_handler | ( | uint32_t | event | ) |
Handles system callbacks.
[in] | event | Event identifier. |
Definition at line 51 of file pru_pstorage.c.
void pru_pstorage_write | ( | pru_pstorage_appdata_t * | p_appdata | ) |
Writes application data to flash.
[in] | p_appdata | Pointer to data to be written. |
Definition at line 69 of file pru_pstorage.c.
void pru_pstorage_status | ( | bool * | p_complete, |
bool * | p_success | ||
) |
Read status of pstorage operation.
[in] | p_complete | Is the current action completed? |
[in] | p_success | Was the last action successful? |
Definition at line 116 of file pru_pstorage.c.
bool pru_pstorage_read | ( | pru_pstorage_appdata_t * | p_appdata | ) |
Reads application data from flash.
[in] | p_appdata | Pointer to where data will be saved. |
Definition at line 94 of file pru_pstorage.c.