Macros | |
#define | LEN_EUI 256 |
#define | PRINTF(...) printf(__VA_ARGS__) |
#define | S_NO_WORD0 ((uint32_t*)0x0080A00C) |
#define | S_NO_WORD1 ((uint32_t*)0x0080A040) |
#define | S_NO_WORD2 ((uint32_t*)0x0080A044) |
#define | S_NO_WORD3 ((uint32_t*)0x0080A048) |
#define | SLAVE_ADDRESS 0x28 |
#define | SLAVE_WAIT_TIMEOUT 10 |
#define | TIMEOUT 1000 |
Functions | |
uint8_t * | edbg_eui_read_eui64 (void) |
Variables | |
struct i2c_master_module | i2c_master_instance |
uint8_t | readbuf [LEN_EUI] |
static uint8_t | write_buffer [2] |
#define LEN_EUI 256 |
#define PRINTF | ( | ... | ) | printf(__VA_ARGS__) |
Referenced by edbg_eui_read_eui64().
#define S_NO_WORD0 ((uint32_t*)0x0080A00C) |
#define S_NO_WORD1 ((uint32_t*)0x0080A040) |
#define S_NO_WORD2 ((uint32_t*)0x0080A044) |
#define S_NO_WORD3 ((uint32_t*)0x0080A048) |
#define SLAVE_ADDRESS 0x28 |
Referenced by edbg_eui_read_eui64().
#define SLAVE_WAIT_TIMEOUT 10 |
Referenced by edbg_eui_read_eui64().
#define TIMEOUT 1000 |
uint8_t* edbg_eui_read_eui64 | ( | void | ) |
References i2c_master_packet::address, i2c_master_packet::data, data, i2c_master_packet::data_length, i2c_master_packet::high_speed, i2c_master_packet::hs_master_code, i, i2c_master_enable(), i2c_master_get_config_defaults(), i2c_master_init(), i2c_master_instance, i2c_master_read_packet_wait(), i2c_master_reset(), i2c_master_write_packet_wait_no_stop(), i2c_master_config::pinmux_pad0, i2c_master_config::pinmux_pad1, PRINTF, readbuf, SLAVE_ADDRESS, SLAVE_WAIT_TIMEOUT, STATUS_ERR_BAD_ADDRESS, STATUS_ERR_TIMEOUT, STATUS_OK, i2c_master_packet::ten_bit_address, and write_buffer.
Referenced by ReadMacAddress().
struct i2c_master_module i2c_master_instance |
uint8_t readbuf[LEN_EUI] |
Referenced by edbg_eui_read_eui64().
|
static |