59#define NORDIC_SEMI_VENDOR_OUI 0xF4CE36
64 uint8_t device_address[8];
65 uint32_t device_address_low;
72 device_address[0] = (NORDIC_SEMI_VENDOR_OUI) >> 16 & 0xFF;
73 device_address[1] = (NORDIC_SEMI_VENDOR_OUI) >> 8 & 0xFF;
74 device_address[2] = NORDIC_SEMI_VENDOR_OUI & 0xFF;
76 device_address[3] = NRF_FICR->DEVICEADDR[1] & 0xFF;
77 device_address_low = NRF_FICR->DEVICEADDR[0];
78#elif defined(NRF_FICR_NS)
79 device_address[3] = NRF_FICR_NS->DEVICEADDR[1] & 0xFF;
80 device_address_low = NRF_FICR_NS->DEVICEADDR[0];
81#elif defined(NRF_FICR_S)
82 device_address[3] = 0;
83 device_address_low = 0;
85#error "NRF_FICR not supported?"
87 memcpy(&device_address[4], &device_address_low,
sizeof(device_address_low));
linkaddr_t linkaddr_node_addr
The link-layer address of the node.
void populate_link_address(void)
Populates the link address using factory information.
Link address implementation for the nRF.
Header file for the link-layer address representation.