AT24MACX02 EEPROM module interface implementation.
More...
#include "FreeRTOS.h"
#include "string.h"
#include "at24mac.h"
#include "port.h"
#include "i2c.h"
|
size_t | at24mac_read (uint8_t id, uint16_t address, uint8_t *rx_data, size_t buf_len, uint32_t timeout) |
| Read serial data from AT24MAC EEPROM.
|
|
size_t | at24mac_read_serial_num (uint8_t id, uint8_t *rx_data, size_t buf_len, uint32_t timeout) |
| Read EEPROM serial number.
|
|
size_t | at24mac_read_eui (uint8_t id, uint8_t *rx_data, size_t buf_len, uint32_t timeout) |
| Read EEPROM EUI number.
|
|
size_t | at24mac_write (uint8_t id, uint16_t address, uint8_t *tx_data, size_t buf_len, uint32_t timeout) |
| Write serial data to EEPROM.
|
|
AT24MACX02 EEPROM module interface implementation.
- Author
- Henrique Silva henri.nosp@m.que..nosp@m.silva.nosp@m.@lnl.nosp@m.s.br
◆ at24mac_read()
size_t at24mac_read |
( |
uint8_t | id, |
|
|
uint16_t | address, |
|
|
uint8_t * | rx_data, |
|
|
size_t | buf_len, |
|
|
uint32_t | timeout ) |
Read serial data from AT24MAC EEPROM.
- Parameters
-
id | EEPROM chip id |
address | Starting read address |
rx_data | Buffer to store the data |
buf_len | Buffer max length |
timeout | Read timeout |
- Returns
- Number of bytes actually received
◆ at24mac_read_eui()
size_t at24mac_read_eui |
( |
uint8_t | id, |
|
|
uint8_t * | rx_data, |
|
|
size_t | buf_len, |
|
|
uint32_t | timeout ) |
Read EEPROM EUI number.
- Parameters
-
id | EEPROM chip id |
rx_data | Buffer to store the data |
buf_len | Buffer max length |
timeout | Read timeout |
- Returns
- Number of bytes read
◆ at24mac_read_serial_num()
size_t at24mac_read_serial_num |
( |
uint8_t | id, |
|
|
uint8_t * | rx_data, |
|
|
size_t | buf_len, |
|
|
uint32_t | timeout ) |
Read EEPROM serial number.
- Parameters
-
id | EEPROM chip id |
rx_data | Buffer to store the data |
buf_len | Buffer max length |
timeout | Read timeout |
- Returns
- Number of bytes read
◆ at24mac_write()
size_t at24mac_write |
( |
uint8_t | id, |
|
|
uint16_t | address, |
|
|
uint8_t * | tx_data, |
|
|
size_t | buf_len, |
|
|
uint32_t | timeout ) |
Write serial data to EEPROM.
- Parameters
-
id | EEPROM chip id |
address | Write start address |
tx_data | Buffer holding the data to write |
buf_len | Buffer max len |
timeout | Write timout |
- Returns
- Number of bytes actually written