MT2523 API Reference  LinkIt SDK v4
Enum

Overview

Enumerations

enum  hal_flash_status_t {
  HAL_FLASH_STATUS_ERROR_ERASE_FAIL = -7,
  HAL_FLASH_STATUS_ERROR_PROG_FAIL = -6,
  HAL_FLASH_STATUS_ERROR_NO_INIT = -5,
  HAL_FLASH_STATUS_ERROR_NO_SPACE = -4,
  HAL_FLASH_STATUS_ERROR_WRONG_ADDRESS = -3,
  HAL_FLASH_STATUS_ERROR_LOCKED = -2,
  HAL_FLASH_STATUS_ERROR = -1,
  HAL_FLASH_STATUS_OK = 0
}
 flash API return status definition More...
 
enum  hal_flash_block_t {
  HAL_FLASH_BLOCK_4K = 0,
  HAL_FLASH_BLOCK_32K = 1,
  HAL_FLASH_BLOCK_64K = 2
}
 flash block definition More...
 

Enumeration Type Documentation

flash block definition

Enumerator
HAL_FLASH_BLOCK_4K 

flash erase block size 4k

HAL_FLASH_BLOCK_32K 

flash erase block size 32k

HAL_FLASH_BLOCK_64K 

flash erase block size 64k

flash API return status definition

Enumerator
HAL_FLASH_STATUS_ERROR_ERASE_FAIL 

flash erase fail

HAL_FLASH_STATUS_ERROR_PROG_FAIL 

flash program fail

HAL_FLASH_STATUS_ERROR_NO_INIT 

flash driver don't initiate

HAL_FLASH_STATUS_ERROR_NO_SPACE 

flash has no space to write

HAL_FLASH_STATUS_ERROR_WRONG_ADDRESS 

flash invalid access address

HAL_FLASH_STATUS_ERROR_LOCKED 

flash had locked

HAL_FLASH_STATUS_ERROR 

flash function error

HAL_FLASH_STATUS_OK 

flash function ok