Peripheral State functions.
More...
Peripheral State functions.
==============================================================================
##### NAND State functions #####
==============================================================================
[..]
This subsection permits to get in run-time the status of the NAND controller
and the data flow.
◆ HAL_NAND_GetState()
Return the NAND state.
- Parameters
-
| hnand | pointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module. |
- Return values
-
Definition at line 1785 of file stm32l4xx_hal_nand.c.
1788 return hnand->
State;
__IO HAL_NAND_StateTypeDef State
◆ HAL_NAND_Read_Status()
NAND memory read status.
- Parameters
-
| hnand | pointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module. |
- Return values
-
Definition at line 1797 of file stm32l4xx_hal_nand.c.
1800 uint32_t DeviceAddress = 0;
1803 DeviceAddress = NAND_DEVICE;
1806 *(__IO uint8_t *)((uint32_t)(DeviceAddress | CMD_AREA)) = NAND_CMD_STATUS;
1809 data = *(__IO uint8_t *)DeviceAddress;
1812 if ((data & NAND_ERROR) == NAND_ERROR)
1816 else if ((data & NAND_READY) == NAND_READY)