MCUXpresso SDK API Reference Manual
Rev 2.12.1
NXP Semiconductors
|
Macros | |
#define | HAL_FLASH_TRANSFER_MODE (0U) |
More... | |
Initialization | |
Public memory declarations Public prototypes | |
hal_flash_status_t | HAL_FlashInit (void) |
Initializes the flash hal adapter module. More... | |
hal_flash_status_t | HAL_FlashProgram (uint32_t dest, uint32_t size, uint8_t *pData) |
Write aligned data to FLASH. More... | |
hal_flash_status_t | HAL_FlashProgramUnaligned (uint32_t dest, uint32_t size, uint8_t *pData) |
Write data to FLASH. More... | |
hal_flash_status_t | HAL_FlashEraseSector (uint32_t dest, uint32_t size) |
Erase the Flash memory which is specified by the parameter dest and parameter size, the content of the specified flash memory would be 0xFF. More... | |
hal_flash_status_t | HAL_FlashVerifyErase (uint32_t start, uint32_t lengthInBytes, hal_flash_margin_value_t margin) |
Verify erase data in Flash. More... | |
hal_flash_status_t | HAL_FlashRead (uint32_t src, uint32_t size, uint8_t *pData) |
Read data from FLASH. More... | |
hal_flash_status_t | HAL_FlashGetProperty (hal_flash_property_tag_t property, uint32_t *value) |
Returns the desired hal flash property. More... | |
hal_flash_status_t | HAL_FlashSetProperty (hal_flash_property_tag_t property, uint32_t value) |
Set the desired hal flash property. More... | |
hal_flash_status_t | HAL_FlashGetSecurityState (hal_flash_security_state_t *state) |
Returns the security state via the pointer passed into the function. More... | |
#define HAL_FLASH_TRANSFER_MODE (0U) |
Include
Public macros
Whether enable transactional function of the FLASH. (0 - disable, 1 - enable)
enum hal_flash_status_t |
Public type definitions
Hal flash status.
hal_flash_status_t HAL_FlashInit | ( | void | ) |
This function initializes the Flash module for the other Flash APIs.
kStatus_HAL_Flash_Success | API was executed successfully. |
kStatus_HAL_Flash_InvalidArgument | An invalid argument is provided. |
#kStatus_HAL_Flash_ExecuteInRamFunctionNotReady | Execute-in-RAM function is not available. |
#kStatus_HAL_Flash_PartitionStatusUpdateFailure | Failed to update the partition status. |
hal_flash_status_t HAL_FlashProgram | ( | uint32_t | dest, |
uint32_t | size, | ||
uint8_t * | pData | ||
) |
dest | The address of the Flash location |
size | The number of bytes to be programed |
pData | Pointer to the data to be programmed to Flash |
kStatus_HAL_Flash_Success | API was executed successfully. |
hal_flash_status_t HAL_FlashProgramUnaligned | ( | uint32_t | dest, |
uint32_t | size, | ||
uint8_t * | pData | ||
) |
dest | The address of the Flash location |
size | The number of bytes to be programed |
pData | Pointer to the data to be programmed to Flash |
kStatus_HAL_Flash_Success | API was executed successfully. |
hal_flash_status_t HAL_FlashEraseSector | ( | uint32_t | dest, |
uint32_t | size | ||
) |
dest | The start address of the first sector to be erased |
size | The number of bytes to be erased |
kStatus_HAL_Flash_Success | API was executed successfully. |
hal_flash_status_t HAL_FlashVerifyErase | ( | uint32_t | start, |
uint32_t | lengthInBytes, | ||
hal_flash_margin_value_t | margin | ||
) |
start | The address of the Flash location |
lengthInBytes | The number of bytes to be checked |
margin | Flash margin value |
kStatus_HAL_Flash_Success | API was executed successfully. |
hal_flash_status_t HAL_FlashRead | ( | uint32_t | src, |
uint32_t | size, | ||
uint8_t * | pData | ||
) |
scr | The address of the Flash location to be read |
size | The number of bytes to be read |
pData | Pointer to the data to be read from Flash |
kStatus_HAL_Flash_Success | API was executed successfully. |
hal_flash_status_t HAL_FlashGetProperty | ( | hal_flash_property_tag_t | property, |
uint32_t * | value | ||
) |
Property | The desired property from the list of properties in enum hal_flash_property_tag_t |
value | A pointer to the value returned for the desired flash property. |
kStatus_HAL_Flash_Success | API was executed successfully. |
kStatus_HAL_Flash_InvalidArgument | An invalid argument is provided. |
kStatus_HAL_Flash_NotSupport | Flash currently not support. |
hal_flash_status_t HAL_FlashSetProperty | ( | hal_flash_property_tag_t | property, |
uint32_t | value | ||
) |
Property | The desired property from the list of properties in enum hal_flash_property_tag_t |
value | The value would be set to the desired flash property. |
kStatus_HAL_Flash_Success | API was executed successfully. |
kStatus_HAL_Flash_InvalidArgument | An invalid argument is provided. |
kStatus_HAL_Flash_NotSupport | Flash currently not support. |
hal_flash_status_t HAL_FlashGetSecurityState | ( | hal_flash_security_state_t * | state | ) |
This function retrieves the current flash security status, including the security enabling state and the backdoor key enabling state.
state | A pointer to the value returned for the current security status |
kStatus_HAL_Flash_Success | API was executed successfully. |
kStatus_HAL_Flash_InvalidArgument | An invalid argument is provided. |
kStatus_HAL_Flash_NotSupport | Flash currently not support. |