51 memcpy(dst, &ieee_addr_hc[8 - len], len);
71 && ((uint8_t *)IEEE_ADDR_LOCATION)[2] == oui_ti[1]
72 && ((uint8_t *)IEEE_ADDR_LOCATION)[1] == oui_ti[2]) {
73 for(i = 0; i < len; i++) {
74 dst[len - i - 1] = ((uint8_t *)IEEE_ADDR_LOCATION)[i < 4 ? i + 4 : i - 4];
77 for(i = 0; i < len; i++) {
78 dst[i] = ((uint8_t *)IEEE_ADDR_LOCATION)[len - 1 - i];
84 dst[len - 1] = IEEE_ADDR_NODE_ID & 0xFF;
85 dst[len - 2] = IEEE_ADDR_NODE_ID >> 8;
#define IEEE_ADDR_OUI_TI
TI OUI.
Header file for the link-layer address representation
void ieee_addr_cpy_to(uint8_t *dst, uint8_t len)
Copy the node's IEEE address to a destination memory area.
#define IEEE_ADDR_CONF_ADDRESS
The hardcoded IEEE address to be used when IEEE_ADDR_CONF_HARDCODED is defined as 1...
#define IEEE_ADDR_CONF_HARDCODED
Location of the IEEE address 0 => Read from InfoPage, 1 => Use a hardcoded address, configured by IEEE_ADDR_CONF_ADDRESS.
#define IEEE_ADDR_LOCATION
Select which address location to use.
Header file with register and macro declarations for the cc2538 IEEE address driver.