1.1.4.4 Library Interface
NAND Flash driver library provides the following interfaces:
Functions
| Name | Description |
|---|---|
| DRV_NAND_FLASH_Initialize | Initializes the NAND FLASH Driver |
| DRV_NAND_FLASH_Open | Opens the specified NAND FLASH driver instance and returns a handle to it |
| DRV_NAND_FLASH_Close | Closes an opened-instance of the NAND FLASH driver |
| DRV_NAND_FLASH_Status | Gets the current status of the NAND FLASH driver module |
| DRV_NAND_FLASH_ResetFlash | Reset the flash device to standby mode |
| DRV_NAND_FLASH_TransferStatusGet | Gets the current status of the transfer request |
| DRV_NAND_FLASH_IdRead | Gets identifier codes from NAND Flash |
| DRV_NAND_FLASH_FeatureSet | Enables or disables target specific features |
| DRV_NAND_FLASH_FeatureGet | Read target specific features |
| DRV_NAND_FLASH_ParameterPageRead | Returns the Parameter page of the NAND Flash device |
| DRV_NAND_FLASH_GeometryGet | Returns the geometry of the NAND Flash device |
| DRV_NAND_FLASH_SkipBlock_BlockCheck | Checks whether NAND Flash block is bad or good |
| DRV_NAND_FLASH_SkipBlock_BlockTag | Tag NAND Flash block to bad or good |
| DRV_NAND_FLASH_SkipBlock_BlockErase | Erase a block |
| DRV_NAND_FLASH_SkipBlock_BlockRead | Reads the data of a whole block from NAND Flash |
| DRV_NAND_FLASH_SkipBlock_BlockWrite | Writes the data of a whole block to NAND Flash |
| DRV_NAND_FLASH_SkipBlock_PageRead | Reads the data and/or the spare area of a page of given block from NAND Flash |
| DRV_NAND_FLASH_SkipBlock_PageWrite | Writes the data and/or the spare area of a page of given block to NAND Flash |
Data types and constants
| Name | Type | Description |
|---|---|---|
| DRV_NAND_FLASH_TRANSFER_STATUS | Enum | NAND FLASH Driver Transfer Status |
| DRV_NAND_FLASH_GEOMETRY | Struct | NAND FLASH Device geometry |
| DRV_NAND_FLASH_DATA | Struct | NAND FLASH Device data |
