1.1.10.1.4 Library Interface
AT24 driver library provides the following interfaces:
Functions
| Name | Description |
|---|---|
| DRV_AT24_Initialize | Initializes the AT24 EEPROM device |
| DRV_AT24_Status | Gets the current status of the AT24 driver module |
| DRV_AT24_Open | Opens the specified AT24 driver instance and returns a handle to it |
| DRV_AT24_Close | Closes the opened-instance of the AT24 driver |
| DRV_AT24_Read | Reads 'n' bytes of data from the specified start address of EEPROM |
| DRV_AT24_Write | Writes 'n' bytes of data starting at the specified address |
| DRV_AT24_PageWrite | Writes one page of data starting at the specified address |
| DRV_AT24_TransferStatusGet | Gets the current status of the transfer request |
| DRV_AT24_GeometryGet | Returns the geometry of the device |
| DRV_AT24_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_AT24_TRANSFER_STATUS | Enum | Defines the data type for AT24 Driver transfer status |
| DRV_AT24_GEOMETRY | Struct | Defines the data type for AT24 EEPROM Geometry details |
| DRV_AT24_EVENT_HANDLER | Typedef | Pointer to a AT24 Driver Event handler function |
