1.1.12.1.4 Library Interface
AT25DF driver library provides the following interfaces:
Functions
Name | Description |
---|---|
DRV_AT25DF_Initialize | Initializes the AT25DF FLASH device |
DRV_AT25DF_Status | Gets the current status of the AT25DF driver module |
DRV_AT25DF_Open | Opens the specified AT25DF driver instance and returns a handle to it |
DRV_AT25DF_Close | Closes the opened-instance of the AT25DF driver |
DRV_AT25DF_Read | Reads 'n' bytes of data from the specified start address of FLASH |
DRV_AT25DF_Write | Writes 'n' bytes of data starting at the specified address |
DRV_AT25DF_PageWrite | Writes one page of data starting at the specified address |
DRV_AT25DF_SectorErase | Erase the sector from the specified block start address |
DRV_AT25DF_BlockErase | Erase a block from the specified block start address |
DRV_AT25DF_ChipErase | Erase entire flash memory |
DRV_AT25DF_TransferStatusGet | Gets the current status of the transfer request |
DRV_AT25DF_GeometryGet | Returns the geometry of the device |
DRV_AT25DF_EventHandlerSet | Allows a client to identify a transfer event handling function for the driver to call back when the requested transfer has finished |
Data types and constants
Name | Type | Description |
---|---|---|
DRV_AT25DF_TRANSFER_STATUS | Enum | Defines the data type for AT25DF Driver transfer status |
DRV_AT25DF_GEOMETRY | Struct | Defines the data type for AT25DF FLASH Geometry details |
DRV_AT25DF_EVENT_HANDLER | Typedef | Pointer to a AT25DF Driver Event handler function |