![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [out] | gap_addr | The Bluetooth Low Energy address. |
| [in] | addr | Address to be converted to the SoftDevice address. |
| NRF_ERROR_NULL | If a NULL pointer is passed as input. |
| NRF_SUCCESS | If the address is copied and converted successfully. |