47 #include <ti/devices/DeviceFamily.h> 48 #include DeviceFamily_constructPath(inc/hw_memmap.h) 49 #include DeviceFamily_constructPath(inc/hw_fcfg1.h) 50 #include DeviceFamily_constructPath(inc/hw_ccfg.h) 54 #define BLE_MAC_PRIMARY_ADDRESS (FCFG1_BASE + FCFG1_O_MAC_BLE_0) 55 #define BLE_MAC_SECONDARY_ADDRESS (CCFG_BASE + CCFG_O_IEEE_BLE_0) 60 volatile const uint8_t *
const primary = (uint8_t *)BLE_MAC_PRIMARY_ADDRESS;
61 volatile const uint8_t *
const secondary = (uint8_t *)BLE_MAC_SECONDARY_ADDRESS;
72 for(i = 0; i < BLE_ADDR_SIZE; i++) {
73 if(secondary[i] != 0xFF) {
75 return (uint8_t *)secondary;
80 return (uint8_t *)primary;
97 for(i = 0; i < BLE_ADDR_SIZE; i++) {
98 dst[i] = ble_addr[BLE_ADDR_SIZE - 1 - i];
114 memcpy(&dst[5], &src[3], 3);
127 uint8_t ble_addr[BLE_ADDR_SIZE];
Header file for the link-layer address representation
uint8_t * ble_addr_ptr(void)
Retrieve the pointer to where the BLE address is stored.
int ble_addr_cpy(uint8_t *dst)
Copy the node's factory BLE address to a destination memory area.
Header file for the CC13xx/CC26xx BLE address driver.
hardware abstraction for a BLE controller
void ble_addr_to_eui64(uint8_t *dst, uint8_t *src)
Copy the node's BLE address to a destination memory area and converts it into a EUI64 address in the ...
int ble_addr_to_eui64_cpy(uint8_t *dst)
Copy the node's EUI64 address that is based on its factory BLE address to a destination memory area...