riot_sys

Function ble_hs_id_copy_addr

Source
pub unsafe extern "C" fn ble_hs_id_copy_addr(
    id_addr_type: u8,
    out_id_addr: *mut u8,
    out_is_nrpa: *mut c_int,
) -> c_int
Expand description

Retrieves one of the device’s identity addresses. The device can have two identity addresses: one public and one random. The id_addr_type argument specifies which of these two addresses to retrieve.

@param id_addr_type The type of identity address to retrieve. Valid values are: o BLE_ADDR_PUBLIC o BLE_ADDR_RANDOM @param out_id_addr On success, the requested identity address is copied into this buffer. The buffer must be at least six bytes in size. Pass NULL if you do not require this information. @param out_is_nrpa On success, the pointed-to value indicates whether the retrieved address is a non-resolvable private address. Pass NULL if you do not require this information.

@return 0 on success; BLE_HS_EINVAL if an invalid address type was specified; BLE_HS_ENOADDR if the device does not have an identity address of the requested type; Other BLE host core code on error.