openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
eeprom_24xx02.h File Reference

24xx02 EEPROM module interface declarations More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

size_t eeprom_24xx02_read (uint8_t id, uint16_t address, uint8_t *rx_data, size_t buf_len, uint32_t timeout)
 Read serial data from EEPROM_24XX02 EEPROM.
 
size_t eeprom_24xx02_write (uint8_t id, uint16_t address, uint8_t *tx_data, size_t buf_len, uint32_t timeout)
 Write serial data to EEPROM.
 

Detailed Description

24xx02 EEPROM module interface declarations

Author
Gustavo Reis gusta.nosp@m.vo.r.nosp@m.eis@l.nosp@m.nls..nosp@m.br

24

Function Documentation

◆ eeprom_24xx02_read()

size_t eeprom_24xx02_read ( uint8_t id,
uint16_t address,
uint8_t * rx_data,
size_t buf_len,
uint32_t timeout )

Read serial data from EEPROM_24XX02 EEPROM.

Parameters
idEEPROM chip id
addressStarting read address
rx_dataBuffer to store the data
buf_lenBuffer max length
timeoutRead timeout
Returns
Number of bytes actually received

◆ eeprom_24xx02_write()

size_t eeprom_24xx02_write ( uint8_t id,
uint16_t address,
uint8_t * tx_data,
size_t buf_len,
uint32_t timeout )

Write serial data to EEPROM.

Parameters
idEEPROM chip id
addressWrite start address
tx_dataBuffer holding the data to write
buf_lenBuffer max len
timeoutWrite timout
Returns
Number of bytes actually written