#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include "contiki.h"
#include "at24mac602.h"
#include "at24mac602-arch.h"
Functions | |
int | at24mac602_init (void) |
Init the AT24MAC602 EEPROM. More... | |
int | at24mac602_read_eui64 (eui64_t *eui) |
Read the EUI-64 from the AT24MAC602 EEPROM. More... | |
int | at24mac602_read_serial128 (at24mac602_serialnumber_t *serial) |
Read the 128-bit serial number from the EEPROM. More... | |
int at24mac602_init | ( | void | ) |
Init the AT24MAC602 EEPROM.
0 | Success |
-1 | Fail |
References at24mac602_arch_init().
Referenced by node_id_restore().
int at24mac602_read_eui64 | ( | eui64_t * | eui | ) |
Read the EUI-64 from the AT24MAC602 EEPROM.
eui | Pointer to an EUI-64 struct to fill out with the EUI-64 read. |
0 | Success |
-1 | Fail |
References at24mac602_arch_init(), at24mac602_arch_read_eui64(), printf, reset_i2c(), and eui64_t::u8.
Referenced by node_id_restore().
int at24mac602_read_serial128 | ( | at24mac602_serialnumber_t * | serial | ) |
Read the 128-bit serial number from the EEPROM.
serial | pointer to serial number structure that will contain the serial number after reading |
0 | Success |
-1 | Fail |
References at24mac602_arch_read_serial128(), and printf.