management functions
More...
management functions
==============================================================================
##### NAND Control functions #####
==============================================================================
[..]
This subsection provides a set of functions allowing to control dynamically
the NAND interface.
◆ HAL_NAND_ECC_Disable()
Disable dynamically NAND ECC feature.
- Parameters
-
| hnand | pointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module. |
- Return values
-
Definition at line 1709 of file stm32l4xx_hal_nand.c.
1712 if(hnand->
State == HAL_NAND_STATE_BUSY)
1718 hnand->
State = HAL_NAND_STATE_BUSY;
1724 hnand->
State = HAL_NAND_STATE_READY;
__IO HAL_NAND_StateTypeDef State
HAL_StatusTypeDef FMC_NAND_ECC_Disable(FMC_NAND_TypeDef *Device, uint32_t Bank)
Disables dynamically FMC_NAND ECC feature.
FMC_NAND_InitTypeDef Init
FMC_NAND_TypeDef * Instance
◆ HAL_NAND_ECC_Enable()
Enable dynamically NAND ECC feature.
- Parameters
-
| hnand | pointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module. |
- Return values
-
Definition at line 1683 of file stm32l4xx_hal_nand.c.
1686 if(hnand->
State == HAL_NAND_STATE_BUSY)
1692 hnand->
State = HAL_NAND_STATE_BUSY;
1698 hnand->
State = HAL_NAND_STATE_READY;
__IO HAL_NAND_StateTypeDef State
FMC_NAND_InitTypeDef Init
HAL_StatusTypeDef FMC_NAND_ECC_Enable(FMC_NAND_TypeDef *Device, uint32_t Bank)
Enables dynamically FMC_NAND ECC feature.
FMC_NAND_TypeDef * Instance
◆ HAL_NAND_GetECC()
| HAL_StatusTypeDef HAL_NAND_GetECC |
( |
NAND_HandleTypeDef * |
hnand, |
|
|
uint32_t * |
ECCval, |
|
|
uint32_t |
Timeout |
|
) |
| |
Get NAND ECC value.
- Parameters
-
| hnand | pointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module. |
| ECCval | pointer to ECC value |
| Timeout | maximum timeout to wait |
- Return values
-
Definition at line 1737 of file stm32l4xx_hal_nand.c.
1739 HAL_StatusTypeDef status =
HAL_OK;
1742 if(hnand->
State == HAL_NAND_STATE_BUSY)
1748 hnand->
State = HAL_NAND_STATE_BUSY;
1754 hnand->
State = HAL_NAND_STATE_READY;
__IO HAL_NAND_StateTypeDef State
FMC_NAND_InitTypeDef Init
HAL_StatusTypeDef FMC_NAND_GetECC(FMC_NAND_TypeDef *Device, uint32_t *ECCval, uint32_t Bank, uint32_t Timeout)
Disables dynamically FMC_NAND ECC feature.
FMC_NAND_TypeDef * Instance