1.1.8.4 Library Interface

SFDP driver library provides the following interfaces.

Functions

NameDescription
DRV_SFDP_InitializeInitializes the SFDP Driver
DRV_SFDP_OpenOpens the specified SFDP driver instance and returns a handle to it
DRV_SFDP_CloseCloses an opened-instance of the SFDP driver
DRV_SFDP_StatusGets the current status of the SFDP driver module
DRV_SFDP_UnlockFlashUnlocks the Flash device for Erase and Program operations
DRV_SFDP_ReadJedecIdReads JEDEC-ID of the Flash device
DRV_SFDP_ReadStatusReads the status register of the Flash device
DRV_SFDP_SectorEraseErase the sector from the specified block start address
DRV_SFDP_BulkEraseErase a block from the specified block start address
DRV_SFDP_ChipEraseErase entire Flash memory
DRV_SFDP_ReadReads n bytes of data from the specified start address of Flash memory
DRV_SFDP_PageWriteWrites one page of data starting at the specified address
DRV_SFDP_TransferStatusGetGets the current status of the transfer request
DRV_SFDP_GeometryGetReturns the geometry of the device
DRV_SFDP_EventHandlerSetAllows 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

NameTypeDescription
DRV_SFDP_TRANSFER_STATUSEnumSFDP Driver Transfer Status
DRV_SFDP_GEOMETRYStructSFDP Device Geometry data
DRV_SFDP_EVENT_HANDLERTypedefPointer to a SFDP Driver Event handler function
DRV_SFDP_PLIB_INTERFACEStructSFDP Driver PLIB Interface structure
DRV_SFDP_INITStructSFDP Driver Initialization structure