Struct esp_idf_sys::ble_hs_adv_fields
source · #[repr(C)]pub struct ble_hs_adv_fields {Show 60 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 sm_tk_value: *const u8,
pub _bitfield_align_6: [u8; 0],
pub _bitfield_6: __BindgenBitfieldUnit<[u8; 1]>,
pub sm_oob_flag: u8,
pub _bitfield_align_7: [u8; 0],
pub _bitfield_7: __BindgenBitfieldUnit<[u8; 1]>,
pub sol_uuids16: *const ble_uuid16_t,
pub sol_num_uuids16: u8,
pub sol_uuids128: *const ble_uuid128_t,
pub sol_num_uuids128: 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 random_tgt_addr: *const u8,
pub num_random_tgt_addrs: u8,
pub appearance: u16,
pub _bitfield_align_8: [u8; 0],
pub _bitfield_8: __BindgenBitfieldUnit<[u8; 1]>,
pub adv_itvl: u16,
pub _bitfield_align_9: [u8; 0],
pub _bitfield_9: __BindgenBitfieldUnit<[u8; 1]>,
pub device_addr: *const u8,
pub device_addr_type: c_uint,
pub _bitfield_align_10: [u8; 0],
pub _bitfield_10: __BindgenBitfieldUnit<[u8; 1]>,
pub sol_uuids32: *const ble_uuid32_t,
pub sol_num_uuids32: u8,
pub le_role: u8,
pub _bitfield_align_11: [u8; 0],
pub _bitfield_11: __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.
sm_tk_value: *const u8
0x10 - Security Manager TK value
_bitfield_align_6: [u8; 0]
§_bitfield_6: __BindgenBitfieldUnit<[u8; 1]>
§sm_oob_flag: u8
0x11 - Security Manager OOB flag
_bitfield_align_7: [u8; 0]
§_bitfield_7: __BindgenBitfieldUnit<[u8; 1]>
§sol_uuids16: *const ble_uuid16_t
0x14 - 16-bit service soliciation list.
sol_num_uuids16: u8
§sol_uuids128: *const ble_uuid128_t
0x15 - 128-bit service solicitation UUIDs.
sol_num_uuids128: u8
§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
§random_tgt_addr: *const u8
0x18 - Random target address.
num_random_tgt_addrs: u8
§appearance: u16
0x19 - Appearance.
_bitfield_align_8: [u8; 0]
§_bitfield_8: __BindgenBitfieldUnit<[u8; 1]>
§adv_itvl: u16
0x1a - Advertising interval.
_bitfield_align_9: [u8; 0]
§_bitfield_9: __BindgenBitfieldUnit<[u8; 1]>
§device_addr: *const u8
0x1b - LE Bluetooth device address
device_addr_type: c_uint
§_bitfield_align_10: [u8; 0]
§_bitfield_10: __BindgenBitfieldUnit<[u8; 1]>
§sol_uuids32: *const ble_uuid32_t
0xF1 - 32-bit service solicitation UUIDs
sol_num_uuids32: u8
§le_role: u8
0x1c - LE Role
_bitfield_align_11: [u8; 0]
§_bitfield_11: __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 sm_tk_value_is_present(&self) -> c_uint
pub fn set_sm_tk_value_is_present(&mut self, val: c_uint)
pub fn new_bitfield_6( sm_tk_value_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
pub fn sm_oob_flag_is_present(&self) -> c_uint
pub fn set_sm_oob_flag_is_present(&mut self, val: c_uint)
pub fn new_bitfield_7( sm_oob_flag_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_8( 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_9( adv_itvl_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
pub fn device_addr_is_present(&self) -> c_uint
pub fn set_device_addr_is_present(&mut self, val: c_uint)
pub fn new_bitfield_10( device_addr_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
pub fn le_role_is_present(&self) -> c_uint
pub fn set_le_role_is_present(&mut self, val: c_uint)
pub fn new_bitfield_11( le_role_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§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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§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
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)