23 #ifndef M2MB_FLASH_API_H 24 #define M2MB_FLASH_API_H 50 #define M2MB_FLASH_PARTITION_ALL 0x7FFF INT32 m2mb_flash_erase_bulk(HANDLE handle, UINT32 start_block, UINT32 block_count)
m2mb_flash_erase_bulk Erases given flash blocks of specified block size.
INT32 m2mb_flash_open(UINT32 partition_id, HANDLE *handle)
m2mb_flash_open opens handle to a flash partition.
INT32 m2mb_flash_close(HANDLE handle)
m2mb_flash_close Closes handle to a flash partition.
INT32 m2mb_flash_write(HANDLE handle, UINT32 byte_offset, UINT32 byte_count, void *buffer)
m2mb_flash_write writes to the flash.
INT32 m2mb_flash_read(HANDLE handle, UINT32 byte_offset, UINT32 byte_count, void *buffer)
m2mb_flash_read to read the flash.
struct M2MB_FLASH_INFO M2MB_FLASH_INFO_T
INT32 m2mb_flash_erase(HANDLE handle, UINT32 start_block, UINT32 block_count)
m2mb_flash_erase erases given flash blocks.
INT32 m2mb_flash_get_info(HANDLE handle, M2MB_FLASH_INFO_T *flash_info)
m2mb_flash_get_info Gets flash device information.