1.1.11.1.4 Library Interface

AT25 driver library provides the following interfaces:

Functions

NameDescription
DRV_AT25_InitializeInitializes the AT25 EEPROM device
DRV_AT25_StatusGets the current status of the AT25 driver module
DRV_AT25_OpenOpens the specified AT25 driver instance and returns a handle to it
DRV_AT25_CloseCloses the opened-instance of the AT25 driver
DRV_AT25_ReadReads 'n' bytes of data from the specified start address of EEPROM
DRV_AT25_WriteWrites 'n' bytes of data starting at the specified address
DRV_AT25_PageWriteWrites one page of data starting at the specified address
DRV_AT25_TransferStatusGetGets the current status of the transfer request
DRV_AT25_GeometryGetReturns the geometry of the device
DRV_AT25_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_AT25_TRANSFER_STATUSEnumDefines the data type for AT25 Driver transfer status
DRV_AT25_GEOMETRYStructDefines the data type for AT25 EEPROM Geometry details
DRV_AT25_EVENT_HANDLERTypedefPointer to a AT25 Driver Event handler function