nrf-softdevice-s122

Crates

git

Versions

default

Flavors

#[repr(C)]
pub struct ble_gap_evt_adv_report_t { pub type_: ble_gap_adv_report_type_t, pub peer_addr: ble_gap_addr_t, pub direct_addr: ble_gap_addr_t, pub primary_phy: u8, pub secondary_phy: u8, pub tx_power: i8, pub rssi: i8, pub ch_index: u8, pub set_id: u8, pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2], u16>, pub data: ble_data_t, pub aux_pointer: ble_gap_aux_pointer_t, }
Expand description

@brief Event structure for @ref BLE_GAP_EVT_ADV_REPORT.

Fields§

§type_: ble_gap_adv_report_type_t

< Advertising report type. See @ref ble_gap_adv_report_type_t.

§peer_addr: ble_gap_addr_t

< Bluetooth address of the peer device. If the peer_addr is resolved: @ref ble_gap_addr_t::addr_id_peer is set to 1 and the address is the peer’s identity address.

§direct_addr: ble_gap_addr_t

< Contains the target address of the advertising event if @ref ble_gap_adv_report_type_t::directed is set to 1. If the SoftDevice was able to resolve the address, @ref ble_gap_addr_t::addr_id_peer is set to 1 and the direct_addr contains the local identity address. If the target address of the advertising event is @ref BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE, and the SoftDevice was unable to resolve it, the application may try to resolve this address to find out if the advertising event was directed to us.

§primary_phy: u8

< Indicates the PHY on which the primary advertising packet was received. See @ref BLE_GAP_PHYS.

§secondary_phy: u8

< Indicates the PHY on which the secondary advertising packet was received. See @ref BLE_GAP_PHYS. This field is set to @ref BLE_GAP_PHY_NOT_SET if no packets were received on a secondary advertising channel.

§tx_power: i8

< This field is only used with extended advertising packets, not supported by this SoftDevice.

§rssi: i8

< Received Signal Strength Indication in dBm of the last packet received. @note ERRATA-153 and ERRATA-225 require the rssi sample to be compensated based on a temperature measurement.

§ch_index: u8

< Channel Index on which the last advertising packet is received (0-39).

§set_id: u8

< Set ID of the received advertising data. Set ID is not present if set to @ref BLE_GAP_ADV_REPORT_SET_ID_NOT_AVAILABLE.

§_bitfield_1: __BindgenBitfieldUnit<[u8; 2], u16>§data: ble_data_t

< Received advertising or scan response data, the data buffer provided in @ref sd_ble_gap_scan_start is now released.

§aux_pointer: ble_gap_aux_pointer_t

< This field is only used with extended advertisement packets, not supported by this SoftDevice.

Implementations§

Trait Implementations§

source§

impl Clone for ble_gap_evt_adv_report_t

source§

fn clone(&self) -> ble_gap_evt_adv_report_t

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ble_gap_evt_adv_report_t

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for ble_gap_evt_adv_report_t

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere
U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.