#[repr(C)]pub struct bt_le_scan_recv_info {
pub addr: *const bt_addr_le_t,
pub sid: u8,
pub rssi: i8,
pub tx_power: i8,
pub adv_type: u8,
pub adv_props: u16,
pub interval: u16,
pub primary_phy: u8,
pub secondary_phy: u8,
}
Expand description
LE advertisement and scan response packet information
Fields§
§addr: *const bt_addr_le_t
@brief Advertiser LE address and type.
If advertiser is anonymous then this address will be @ref BT_ADDR_LE_ANY.
sid: u8
Advertising Set Identifier.
rssi: i8
Strength of advertiser signal.
tx_power: i8
Transmit power of the advertiser.
adv_type: u8
@brief Advertising packet type.
Uses the BT_GAP_ADV_TYPE_* value.
May indicate that this is a scan response if the type is @ref BT_GAP_ADV_TYPE_SCAN_RSP.
adv_props: u16
@brief Advertising packet properties bitfield.
Uses the BT_GAP_ADV_PROP_* values. May indicate that this is a scan response if the value contains the @ref BT_GAP_ADV_PROP_SCAN_RESPONSE bit.
interval: u16
@brief Periodic advertising interval (N * 1.25 ms).
If 0 there is no periodic advertising.
primary_phy: u8
Primary advertising channel PHY.
secondary_phy: u8
Secondary advertising channel PHY.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for bt_le_scan_recv_info
impl RefUnwindSafe for bt_le_scan_recv_info
impl !Send for bt_le_scan_recv_info
impl !Sync for bt_le_scan_recv_info
impl Unpin for bt_le_scan_recv_info
impl UnwindSafe for bt_le_scan_recv_info
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more