1.1.4.4 Library Interface

NAND Flash driver library provides the following interfaces:

Functions

NameDescription
DRV_NAND_FLASH_InitializeInitializes the NAND FLASH Driver
DRV_NAND_FLASH_OpenOpens the specified NAND FLASH driver instance and returns a handle to it
DRV_NAND_FLASH_CloseCloses an opened-instance of the NAND FLASH driver
DRV_NAND_FLASH_StatusGets the current status of the NAND FLASH driver module
DRV_NAND_FLASH_ResetFlashReset the flash device to standby mode
DRV_NAND_FLASH_TransferStatusGetGets the current status of the transfer request
DRV_NAND_FLASH_IdReadGets identifier codes from NAND Flash
DRV_NAND_FLASH_FeatureSetEnables or disables target specific features
DRV_NAND_FLASH_FeatureGetRead target specific features
DRV_NAND_FLASH_ParameterPageReadReturns the Parameter page of the NAND Flash device
DRV_NAND_FLASH_GeometryGetReturns the geometry of the NAND Flash device
DRV_NAND_FLASH_SkipBlock_BlockCheckChecks whether NAND Flash block is bad or good
DRV_NAND_FLASH_SkipBlock_BlockTagTag NAND Flash block to bad or good
DRV_NAND_FLASH_SkipBlock_BlockEraseErase a block
DRV_NAND_FLASH_SkipBlock_BlockReadReads the data of a whole block from NAND Flash
DRV_NAND_FLASH_SkipBlock_BlockWriteWrites the data of a whole block to NAND Flash
DRV_NAND_FLASH_SkipBlock_PageReadReads the data and/or the spare area of a page of given block from NAND Flash
DRV_NAND_FLASH_SkipBlock_PageWriteWrites the data and/or the spare area of a page of given block to NAND Flash

Data types and constants

NameTypeDescription
DRV_NAND_FLASH_TRANSFER_STATUSEnumNAND FLASH Driver Transfer Status
DRV_NAND_FLASH_GEOMETRYStructNAND FLASH Device geometry
DRV_NAND_FLASH_DATAStructNAND FLASH Device data