STM3210E_EVAL BSP User Manual: STM3210E EVAL NAND Exported Functions

STM3210E_EVAL BSP

STM3210E_EVAL BSP User Manual
STM3210E EVAL NAND Exported Functions

Functions

uint8_t BSP_NAND_Init (void)
 Initializes the NAND device.
uint8_t BSP_NAND_ReadData (NAND_AddressTypeDef BlockAddress, uint8_t *pData, uint32_t uwNumPage)
 Reads an amount of data from the NAND device.
uint8_t BSP_NAND_WriteData (NAND_AddressTypeDef BlockAddress, uint8_t *pData, uint32_t uwNumPage)
 Writes an amount of data to the NAND device.
uint8_t BSP_NAND_Erase_Block (NAND_AddressTypeDef BlockAddress)
 Erases the specified block of the NAND device.
uint8_t BSP_NAND_Read_ID (NAND_IDTypeDef *pNAND_ID)
 Reads NAND flash IDs.
uint8_t BSP_NAND_Erase_Chip (void)

Function Documentation

uint8_t BSP_NAND_Erase_Block ( NAND_AddressTypeDef  BlockAddress)

Erases the specified block of the NAND device.

Parameters:
BlockAddress,:Block address to Erase
Return values:
NANDmemory status

Definition at line 194 of file stm3210e_eval_nand.c.

References NAND_OK, and nandHandle.

uint8_t BSP_NAND_Erase_Chip ( void  )
uint8_t BSP_NAND_Init ( void  )

Initializes the NAND device.

Return values:
NANDmemory status

Definition at line 116 of file stm3210e_eval_nand.c.

References NAND_BLOCK_SIZE, NAND_MAX_ZONE, NAND_MspInit(), NAND_OK, NAND_PAGE_SIZE, NAND_SPARE_AREA_SIZE, NAND_ZONE_SIZE, nandHandle, and Timing.

uint8_t BSP_NAND_Read_ID ( NAND_IDTypeDef *  pNAND_ID)

Reads NAND flash IDs.

Parameters:
pNAND_ID: Pointer to NAND ID structure
Return values:
NANDmemory status

Definition at line 210 of file stm3210e_eval_nand.c.

References NAND_OK, and nandHandle.

uint8_t BSP_NAND_ReadData ( NAND_AddressTypeDef  BlockAddress,
uint8_t *  pData,
uint32_t  uwNumPage 
)

Reads an amount of data from the NAND device.

Parameters:
BlockAddress,:Block address to Read
pData,:Pointer to data to be read
uwNumPage,:Number of Pages to read to Block
Return values:
NANDmemory status

Definition at line 160 of file stm3210e_eval_nand.c.

References NAND_OK, and nandHandle.

uint8_t BSP_NAND_WriteData ( NAND_AddressTypeDef  BlockAddress,
uint8_t *  pData,
uint32_t  uwNumPage 
)

Writes an amount of data to the NAND device.

Parameters:
BlockAddress,:Block address to Write
pData,:Pointer to data to be written
uwNumPage,:Number of Pages to write to Block
Return values:
NANDmemory status

Definition at line 178 of file stm3210e_eval_nand.c.

References NAND_OK, and nandHandle.

Generated on Fri Feb 24 2017 17:15:12 for STM3210E_EVAL BSP User Manual by   doxygen 1.7.6.1