AIROC™ BTSDK v4.9 - Documentation | ||||
Defines a driver for the Embedded Flash interface. More...
Functions | |
wiced_result_t | wiced_hal_eflash_init (void) |
Function wiced_hal_eflash_init. More... | |
wiced_result_t | wiced_hal_eflash_read (uint32_t offset, uint8_t *p_buffer, uint32_t length) |
Function wiced_hal_eflash_read. More... | |
wiced_result_t | wiced_hal_eflash_write (uint32_t offset, uint8_t *p_buffer, uint32_t length) |
Function wiced_hal_eflash_write. More... | |
wiced_result_t | wiced_hal_eflash_erase (uint32_t offset, uint32_t length) |
Function wiced_hal_eflash_erase. More... | |
wiced_result_t | wiced_hal_eflash_erase_whole (void) |
Function wiced_hal_eflash_erase_whole. More... | |
uint32_t | wiced_hal_eflash_get_size (void) |
Function wiced_hal_eflash_get_size. More... | |
Defines a driver for the Embedded Flash interface.
wiced_result_t wiced_hal_eflash_erase | ( | uint32_t | offset, |
uint32_t | length | ||
) |
Function wiced_hal_eflash_erase.
Erase the eflash. Erase is performed page-wise. eflash page size is 0x1000 bytes. eflash page count is 0x100.
[in] | offset | :start offset of eflash page to be erased. |
[in] | length | :length of data in byte's to be erased, erase performed page-wise. |
wiced_result_t wiced_hal_eflash_erase_whole | ( | void | ) |
Function wiced_hal_eflash_erase_whole.
Erase the whole eflash
uint32_t wiced_hal_eflash_get_size | ( | void | ) |
Function wiced_hal_eflash_get_size.
Gets the sizeof the eflash
wiced_result_t wiced_hal_eflash_init | ( | void | ) |
Function wiced_hal_eflash_init.
Initializes the embedded flash
wiced_result_t wiced_hal_eflash_read | ( | uint32_t | offset, |
uint8_t * | p_buffer, | ||
uint32_t | length | ||
) |
Function wiced_hal_eflash_read.
Reads the data from eflash
[in] | offset | :start offset of eflash from which data to be read, offset should be word aligned |
[in] | p_buffer | :Pointer to the buffer to which data is to be read, buffer should be word aligned |
[in] | length | :length of data in byte's to be read. |
wiced_result_t wiced_hal_eflash_write | ( | uint32_t | offset, |
uint8_t * | p_buffer, | ||
uint32_t | length | ||
) |
Function wiced_hal_eflash_write.
Writes the data to eflash.Interrupts will be locked for the duration of the write. And only writes to an already erased location is valid.
[in] | offset | :start offset of eflash to be written, offset should be word aligned |
[in] | p_buffer | :Pointer to the buffer from which data will be written, buffer should be byte, half-word, or word aligned. |
[in] | length | :length of data in byte's to be written, length should be word aligned |