riot_sys::bindgen

Function ble_gap_set_priv_mode

Source
pub unsafe extern "C" fn ble_gap_set_priv_mode(
    peer_addr: *const ble_addr_t,
    priv_mode: u8,
) -> c_int
Expand description

Set privacy mode for specified peer device

@param peer_addr Peer device address @param priv_mode Privacy mode to be used. Can be one of following constants: - BLE_GAP_PRIVATE_MODE_NETWORK - BLE_GAP_PRIVATE_MODE_DEVICE

@return 0 on success; nonzero on failure.