1.1.8.4 Library Interface
SFDP driver library provides the following interfaces.
Functions
| Name | Description |
|---|---|
| DRV_SFDP_Initialize | Initializes the SFDP Driver |
| DRV_SFDP_Open | Opens the specified SFDP driver instance and returns a handle to it |
| DRV_SFDP_Close | Closes an opened-instance of the SFDP driver |
| DRV_SFDP_Status | Gets the current status of the SFDP driver module |
| DRV_SFDP_UnlockFlash | Unlocks the Flash device for Erase and Program operations |
| DRV_SFDP_ReadJedecId | Reads JEDEC-ID of the Flash device |
| DRV_SFDP_ReadStatus | Reads the status register of the Flash device |
| DRV_SFDP_SectorErase | Erase the sector from the specified block start address |
| DRV_SFDP_BulkErase | Erase a block from the specified block start address |
| DRV_SFDP_ChipErase | Erase entire Flash memory |
| DRV_SFDP_Read | Reads n bytes of data from the specified start address of Flash memory |
| DRV_SFDP_PageWrite | Writes one page of data starting at the specified address |
| DRV_SFDP_TransferStatusGet | Gets the current status of the transfer request |
| DRV_SFDP_GeometryGet | Returns the geometry of the device |
| DRV_SFDP_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_SFDP_TRANSFER_STATUS | Enum | SFDP Driver Transfer Status |
| DRV_SFDP_GEOMETRY | Struct | SFDP Device Geometry data |
| DRV_SFDP_EVENT_HANDLER | Typedef | Pointer to a SFDP Driver Event handler function |
| DRV_SFDP_PLIB_INTERFACE | Struct | SFDP Driver PLIB Interface structure |
| DRV_SFDP_INIT | Struct | SFDP Driver Initialization structure |
