AIROC™ BTSDK v4.9 - Documentation | ||||
Functions | |
uint16_t | wiced_hal_write_nvram (uint16_t vs_id, uint16_t data_length, uint8_t *p_data, wiced_result_t *p_status) |
Write data to NVRAM. More... | |
uint16_t | wiced_hal_read_nvram (uint16_t vs_id, uint16_t data_length, uint8_t *p_data, wiced_result_t *p_status) |
Reads data from NVRAM, which was previously written by the application to a specific VS_ID using wiced_hal_write_nvram. More... | |
void | wiced_hal_delete_nvram (uint16_t vs_id, wiced_result_t *p_status) |
Deletes data that exists at a specific, previously written vs_id. More... | |
void wiced_hal_delete_nvram | ( | uint16_t | vs_id, |
wiced_result_t * | p_status | ||
) |
Deletes data that exists at a specific, previously written vs_id.
It's not necessary to call this function in order to overwrite new data to a vs_id. The p_status parameter is used to indicate additional information about type of failure if return code is zero. Possible values for p_status:
[in] | vs_id | volatile section ID |
[out] | p_status | result code returned |
uint16_t wiced_hal_read_nvram | ( | uint16_t | vs_id, |
uint16_t | data_length, | ||
uint8_t * | p_data, | ||
wiced_result_t * | p_status | ||
) |
Reads data from NVRAM, which was previously written by the application to a specific VS_ID using wiced_hal_write_nvram.
Use the same VS_ID to restore the data to the input memory buffer. The p_status parameter is used to indicate additional information about type of failure if return code is zero. Possible values for p_status:
[in] | vs_id | volatile section ID |
[in] | data_length | num bytes to read from NVRAM (max 500) |
[out] | p_data | allocated buffer into which data can be memcpy'd |
[out] | p_status | result code returned |
uint16_t wiced_hal_write_nvram | ( | uint16_t | vs_id, |
uint16_t | data_length, | ||
uint8_t * | p_data, | ||
wiced_result_t * | p_status | ||
) |
Write data to NVRAM.
Each VS_ID can store 500 bytes. The range of VS_IDs available to write to is enumerated above as the range of WICED_NVRAM_VSID_START to WICED_NVRAM_VSID_END. The p_status parameter is used to indicate additional information about type of failure if return code is zero. Possible values for p_status:
[in] | vs_id | volatile section ID |
[in] | data_length | num bytes to write to NVRAM (max 500) |
[in] | p_data | pointer to the data to be written to NVRAM |
[out] | p_status | result code returned |