nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_scan_copy_addr_to_sd_gap_addr()

uint32_t ble_scan_copy_addr_to_sd_gap_addr ( ble_gap_addr_t * gap_addr,
const uint8_t addr[BLE_GAP_ADDR_LEN] )

#include <ble_scan.h>

Convert the raw address to the SoftDevice GAP address.

This function inverts the byte order in the address. If you enter the address as it is displayed (for example, on a phone screen from left to right), you must use this function to convert the address to the SoftDevice address type.

Note
This function does not decode an address type.
Parameters
[out]gap_addrThe Bluetooth Low Energy address.
[in]addrAddress to be converted to the SoftDevice address.
Return values
NRF_ERROR_NULLIf a NULL pointer is passed as input.
NRF_SUCCESSIf the address is copied and converted successfully.