1.1.10.1.4 Library Interface

AT24 driver library provides the following interfaces:

Functions

NameDescription
DRV_AT24_InitializeInitializes the AT24 EEPROM device
DRV_AT24_StatusGets the current status of the AT24 driver module
DRV_AT24_OpenOpens the specified AT24 driver instance and returns a handle to it
DRV_AT24_CloseCloses the opened-instance of the AT24 driver
DRV_AT24_ReadReads 'n' bytes of data from the specified start address of EEPROM
DRV_AT24_WriteWrites 'n' bytes of data starting at the specified address
DRV_AT24_PageWriteWrites one page of data starting at the specified address
DRV_AT24_TransferStatusGetGets the current status of the transfer request
DRV_AT24_GeometryGetReturns the geometry of the device
DRV_AT24_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_AT24_TRANSFER_STATUSEnumDefines the data type for AT24 Driver transfer status
DRV_AT24_GEOMETRYStructDefines the data type for AT24 EEPROM Geometry details
DRV_AT24_EVENT_HANDLERTypedefPointer to a AT24 Driver Event handler function