|
openMMC
Open Source Modular MMC for AMCs
|
24xx02 EEPROM module interface declarations More...

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. | |
24xx02 EEPROM module interface declarations
24
| 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.
| id | EEPROM chip id |
| address | Starting read address |
| rx_data | Buffer to store the data |
| buf_len | Buffer max length |
| timeout | Read timeout |
| 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.
| id | EEPROM chip id |
| address | Write start address |
| tx_data | Buffer holding the data to write |
| buf_len | Buffer max len |
| timeout | Write timout |