|
Wirepas SDK
|
|
Go to the documentation of this file.
20 #ifndef APP_LIB_MEMORY_AREA_H_
21 #define APP_LIB_MEMORY_AREA_H_
30 #define APP_LIB_MEMORY_AREA_NAME 0x01fd3b49
33 #define APP_LIB_MEMORY_AREA_VERSION 0x200
58 #define APP_LIB_MEM_AREA_MAX_AREAS 8
213 uint32_t * sector_base,
214 size_t * number_of_sector);
250 uint8_t * num_areas);
app_lib_mem_area_type_e type
uint32_t sector_erase_time
uint32_t app_lib_mem_area_id_t
Memory Area id definition.
app_lib_mem_area_res_e(* app_lib_mem_area_startWrite_f)(app_lib_mem_area_id_t id, uint32_t to, const void *from, size_t amount)
Block write to a memory area.
@ APP_LIB_MEM_AREA_TYPE_USER
app_lib_mem_area_startErase_f startErase
app_lib_mem_area_getAreaList_f getAreaList
uint32_t byte_write_call_time
bool(* app_lib_mem_area_isBusy_f)(app_lib_mem_area_id_t id)
Checks if underlying flash driver is busy.
app_lib_mem_area_res_e(* app_lib_mem_area_startErase_f)(app_lib_mem_area_id_t id, uint32_t *sector_base, size_t *number_of_sector)
Erase one or multiple sectors in the memory area.
uint32_t sector_erase_call_time
Information on flash peripheral.
@ APP_LIB_MEM_AREA_TYPE_APPLICATION
app_lib_mem_area_getAreaInfo_f getAreaInfo
uint32_t is_busy_call_time
@ APP_LIB_MEM_AREA_RES_PARAM
@ APP_LIB_MEM_AREA_RES_NODRIVER
uint32_t page_write_call_time
@ APP_LIB_MEM_AREA_RES_BUSY
@ APP_LIB_MEM_AREA_RES_OK
app_lib_mem_area_type_e
Lists the types of areas accessible from application side.
@ APP_LIB_MEM_AREA_RES_ERROR
void(* app_lib_mem_area_getAreaList_f)(app_lib_mem_area_id_t *list, uint8_t *num_areas)
Returns the list of areas defined in the bootloader and accessible from the application.
app_lib_mem_area_isBusy_f isBusy
app_lib_mem_area_id_t area_id
app_lib_mem_area_startRead_f startRead
app_lib_mem_area_flash_info_t flash
@ APP_LIB_MEM_AREA_RES_INVALID_AREA
app_lib_mem_area_res_e
memory area operations result
app_lib_mem_area_res_e(* app_lib_mem_area_getAreaInfo_f)(app_lib_mem_area_id_t id, app_lib_mem_area_info_t *info)
Fills a structure with info about memory area and flash timings and topology.
List of library functions.
app_lib_mem_area_startWrite_f startWrite
app_lib_mem_area_res_e(* app_lib_mem_area_startRead_f)(app_lib_mem_area_id_t id, void *to, uint32_t from, size_t amount)
Block read from a memory area.