STM32F439xx HAL User Manual
Functions
Initialization and de-initialization functions
NAND Exported Functions

Initialization and Configuration functions. More...

Functions

HAL_StatusTypeDef HAL_NAND_Init (NAND_HandleTypeDef *hnand, FMC_NAND_PCC_TimingTypeDef *ComSpace_Timing, FMC_NAND_PCC_TimingTypeDef *AttSpace_Timing)
 Perform NAND memory Initialization sequence.
HAL_StatusTypeDef HAL_NAND_DeInit (NAND_HandleTypeDef *hnand)
 Perform NAND memory De-Initialization sequence.
__weak void HAL_NAND_MspInit (NAND_HandleTypeDef *hnand)
 NAND MSP Init.
__weak void HAL_NAND_MspDeInit (NAND_HandleTypeDef *hnand)
 NAND MSP DeInit.
void HAL_NAND_IRQHandler (NAND_HandleTypeDef *hnand)
 This function handles NAND device interrupt request.
__weak void HAL_NAND_ITCallback (NAND_HandleTypeDef *hnand)
 NAND interrupt feature callback.
HAL_StatusTypeDef HAL_NAND_ConfigDevice (NAND_HandleTypeDef *hnand, NAND_DeviceConfigTypeDef *pDeviceConfig)
 Configure the device: Enter the physical parameters of the device.
HAL_StatusTypeDef HAL_NAND_Read_ID (NAND_HandleTypeDef *hnand, NAND_IDTypeDef *pNAND_ID)
 Read the NAND memory electronic signature.

Detailed Description

Initialization and Configuration functions.

  ==============================================================================
            ##### NAND Initialization and de-initialization functions #####
  ==============================================================================
  [..]  
    This section provides functions allowing to initialize/de-initialize
    the NAND memory
  

Function Documentation

HAL_StatusTypeDef HAL_NAND_ConfigDevice ( NAND_HandleTypeDef hnand,
NAND_DeviceConfigTypeDef pDeviceConfig 
)

Configure the device: Enter the physical parameters of the device.

Parameters:
hnandpointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
pDeviceConfigpointer to NAND_DeviceConfigTypeDef structure
Return values:
HALstatus

Definition at line 452 of file stm32f4xx_hal_nand.c.

References NAND_DeviceConfigTypeDef::BlockNbr, NAND_DeviceConfigTypeDef::BlockSize, NAND_HandleTypeDef::Config, NAND_DeviceConfigTypeDef::ExtraCommandEnable, NAND_DeviceConfigTypeDef::PageSize, NAND_DeviceConfigTypeDef::PlaneNbr, NAND_DeviceConfigTypeDef::PlaneSize, and NAND_DeviceConfigTypeDef::SpareAreaSize.

HAL_StatusTypeDef HAL_NAND_DeInit ( NAND_HandleTypeDef hnand)

Perform NAND memory De-Initialization sequence.

Parameters:
hnandpointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
Return values:
HALstatus

Definition at line 193 of file stm32f4xx_hal_nand.c.

References HAL_NAND_MspDeInit(), HAL_NAND_STATE_RESET, NAND_HandleTypeDef::Init, NAND_HandleTypeDef::Instance, and NAND_HandleTypeDef::State.

HAL_StatusTypeDef HAL_NAND_Init ( NAND_HandleTypeDef hnand,
FMC_NAND_PCC_TimingTypeDef *  ComSpace_Timing,
FMC_NAND_PCC_TimingTypeDef *  AttSpace_Timing 
)

Perform NAND memory Initialization sequence.

Parameters:
hnandpointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
ComSpace_Timingpointer to Common space timing structure
AttSpace_Timingpointer to Attribute space timing structure
Return values:
HALstatus

Definition at line 153 of file stm32f4xx_hal_nand.c.

References HAL_NAND_MspInit(), HAL_NAND_STATE_READY, HAL_NAND_STATE_RESET, NAND_HandleTypeDef::Init, NAND_HandleTypeDef::Instance, NAND_HandleTypeDef::Lock, and NAND_HandleTypeDef::State.

This function handles NAND device interrupt request.

Parameters:
hnandpointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
Return values:
HALstatus

Definition at line 247 of file stm32f4xx_hal_nand.c.

References HAL_NAND_ITCallback(), NAND_HandleTypeDef::Init, and NAND_HandleTypeDef::Instance.

NAND interrupt feature callback.

Parameters:
hnandpointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
Return values:
None

Definition at line 296 of file stm32f4xx_hal_nand.c.

Referenced by HAL_NAND_IRQHandler().

NAND MSP DeInit.

Parameters:
hnandpointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
Return values:
None

Definition at line 231 of file stm32f4xx_hal_nand.c.

Referenced by HAL_NAND_DeInit().

NAND MSP Init.

Parameters:
hnandpointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
Return values:
None

Definition at line 216 of file stm32f4xx_hal_nand.c.

Referenced by HAL_NAND_Init().

HAL_StatusTypeDef HAL_NAND_Read_ID ( NAND_HandleTypeDef hnand,
NAND_IDTypeDef pNAND_ID 
)

Read the NAND memory electronic signature.

Parameters:
hnandpointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
pNAND_IDNAND ID structure
Return values:
HALstatus

Definition at line 331 of file stm32f4xx_hal_nand.c.

References ADDR_1ST_CYCLE, ADDR_2ND_CYCLE, ADDR_3RD_CYCLE, ADDR_4TH_CYCLE, ADDR_AREA, CMD_AREA, NAND_IDTypeDef::Device_Id, NAND_IDTypeDef::Fourth_Id, HAL_NAND_STATE_BUSY, HAL_NAND_STATE_READY, NAND_HandleTypeDef::Init, NAND_IDTypeDef::Maker_Id, NAND_CMD_READID, NAND_DEVICE1, NAND_DEVICE2, NAND_HandleTypeDef::State, and NAND_IDTypeDef::Third_Id.