#[repr(C)]pub struct ble_hs_adv_fields {Show 39 fields
pub flags: u8,
pub uuids16: *const ble_uuid16_t,
pub num_uuids16: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub uuids32: *const ble_uuid32_t,
pub num_uuids32: u8,
pub _bitfield_align_2: [u8; 0],
pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1]>,
pub uuids128: *const ble_uuid128_t,
pub num_uuids128: u8,
pub _bitfield_align_3: [u8; 0],
pub _bitfield_3: __BindgenBitfieldUnit<[u8; 1]>,
pub name: *const u8,
pub name_len: u8,
pub _bitfield_align_4: [u8; 0],
pub _bitfield_4: __BindgenBitfieldUnit<[u8; 1]>,
pub tx_pwr_lvl: i8,
pub _bitfield_align_5: [u8; 0],
pub _bitfield_5: __BindgenBitfieldUnit<[u8; 1]>,
pub slave_itvl_range: *const u8,
pub svc_data_uuid16: *const u8,
pub svc_data_uuid16_len: u8,
pub public_tgt_addr: *const u8,
pub num_public_tgt_addrs: u8,
pub appearance: u16,
pub _bitfield_align_6: [u8; 0],
pub _bitfield_6: __BindgenBitfieldUnit<[u8; 1]>,
pub adv_itvl: u16,
pub _bitfield_align_7: [u8; 0],
pub _bitfield_7: __BindgenBitfieldUnit<[u8; 1]>,
pub svc_data_uuid32: *const u8,
pub svc_data_uuid32_len: u8,
pub svc_data_uuid128: *const u8,
pub svc_data_uuid128_len: u8,
pub uri: *const u8,
pub uri_len: u8,
pub mfg_data: *const u8,
pub mfg_data_len: u8,
}
Fields§
§flags: u8
0x01 - Flags.
uuids16: *const ble_uuid16_t
0x02,0x03 - 16-bit service class UUIDs.
num_uuids16: u8
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§uuids32: *const ble_uuid32_t
0x04,0x05 - 32-bit service class UUIDs.
num_uuids32: u8
§_bitfield_align_2: [u8; 0]
§_bitfield_2: __BindgenBitfieldUnit<[u8; 1]>
§uuids128: *const ble_uuid128_t
0x06,0x07 - 128-bit service class UUIDs.
num_uuids128: u8
§_bitfield_align_3: [u8; 0]
§_bitfield_3: __BindgenBitfieldUnit<[u8; 1]>
§name: *const u8
0x08,0x09 - Local name.
name_len: u8
§_bitfield_align_4: [u8; 0]
§_bitfield_4: __BindgenBitfieldUnit<[u8; 1]>
§tx_pwr_lvl: i8
0x0a - Tx power level.
_bitfield_align_5: [u8; 0]
§_bitfield_5: __BindgenBitfieldUnit<[u8; 1]>
§slave_itvl_range: *const u8
0x0d - Slave connection interval range.
svc_data_uuid16: *const u8
0x16 - Service data - 16-bit UUID.
svc_data_uuid16_len: u8
§public_tgt_addr: *const u8
0x17 - Public target address.
num_public_tgt_addrs: u8
§appearance: u16
0x19 - Appearance.
_bitfield_align_6: [u8; 0]
§_bitfield_6: __BindgenBitfieldUnit<[u8; 1]>
§adv_itvl: u16
0x1a - Advertising interval.
_bitfield_align_7: [u8; 0]
§_bitfield_7: __BindgenBitfieldUnit<[u8; 1]>
§svc_data_uuid32: *const u8
0x20 - Service data - 32-bit UUID.
svc_data_uuid32_len: u8
§svc_data_uuid128: *const u8
0x21 - Service data - 128-bit UUID.
svc_data_uuid128_len: u8
§uri: *const u8
0x24 - URI.
uri_len: u8
§mfg_data: *const u8
0xff - Manufacturer specific data.
mfg_data_len: u8
Implementations§
Source§impl ble_hs_adv_fields
impl ble_hs_adv_fields
pub fn uuids16_is_complete(&self) -> c_uint
pub fn set_uuids16_is_complete(&mut self, val: c_uint)
pub fn new_bitfield_1( uuids16_is_complete: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
pub fn uuids32_is_complete(&self) -> c_uint
pub fn set_uuids32_is_complete(&mut self, val: c_uint)
pub fn new_bitfield_2( uuids32_is_complete: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
pub fn uuids128_is_complete(&self) -> c_uint
pub fn set_uuids128_is_complete(&mut self, val: c_uint)
pub fn new_bitfield_3( uuids128_is_complete: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
pub fn name_is_complete(&self) -> c_uint
pub fn set_name_is_complete(&mut self, val: c_uint)
pub fn new_bitfield_4( name_is_complete: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
pub fn tx_pwr_lvl_is_present(&self) -> c_uint
pub fn set_tx_pwr_lvl_is_present(&mut self, val: c_uint)
pub fn new_bitfield_5( tx_pwr_lvl_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
pub fn appearance_is_present(&self) -> c_uint
pub fn set_appearance_is_present(&mut self, val: c_uint)
pub fn new_bitfield_6( appearance_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
pub fn adv_itvl_is_present(&self) -> c_uint
pub fn set_adv_itvl_is_present(&mut self, val: c_uint)
pub fn new_bitfield_7( adv_itvl_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for ble_hs_adv_fields
impl Clone for ble_hs_adv_fields
Source§fn clone(&self) -> ble_hs_adv_fields
fn clone(&self) -> ble_hs_adv_fields
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ble_hs_adv_fields
impl Debug for ble_hs_adv_fields
Source§impl Default for ble_hs_adv_fields
impl Default for ble_hs_adv_fields
impl Copy for ble_hs_adv_fields
Auto Trait Implementations§
impl Freeze for ble_hs_adv_fields
impl RefUnwindSafe for ble_hs_adv_fields
impl !Send for ble_hs_adv_fields
impl !Sync for ble_hs_adv_fields
impl Unpin for ble_hs_adv_fields
impl UnwindSafe for ble_hs_adv_fields
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 96 bytes