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