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

source

pub fn uuids16_is_complete(&self) -> c_uint

source

pub fn set_uuids16_is_complete(&mut self, val: c_uint)

source

pub fn new_bitfield_1( uuids16_is_complete: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

source

pub fn uuids32_is_complete(&self) -> c_uint

source

pub fn set_uuids32_is_complete(&mut self, val: c_uint)

source

pub fn new_bitfield_2( uuids32_is_complete: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

source

pub fn uuids128_is_complete(&self) -> c_uint

source

pub fn set_uuids128_is_complete(&mut self, val: c_uint)

source

pub fn new_bitfield_3( uuids128_is_complete: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

source

pub fn name_is_complete(&self) -> c_uint

source

pub fn set_name_is_complete(&mut self, val: c_uint)

source

pub fn new_bitfield_4( name_is_complete: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

source

pub fn tx_pwr_lvl_is_present(&self) -> c_uint

source

pub fn set_tx_pwr_lvl_is_present(&mut self, val: c_uint)

source

pub fn new_bitfield_5( tx_pwr_lvl_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

source

pub fn sm_tk_value_is_present(&self) -> c_uint

source

pub fn set_sm_tk_value_is_present(&mut self, val: c_uint)

source

pub fn new_bitfield_6( sm_tk_value_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

source

pub fn sm_oob_flag_is_present(&self) -> c_uint

source

pub fn set_sm_oob_flag_is_present(&mut self, val: c_uint)

source

pub fn new_bitfield_7( sm_oob_flag_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

source

pub fn appearance_is_present(&self) -> c_uint

source

pub fn set_appearance_is_present(&mut self, val: c_uint)

source

pub fn new_bitfield_8( appearance_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

source

pub fn adv_itvl_is_present(&self) -> c_uint

source

pub fn set_adv_itvl_is_present(&mut self, val: c_uint)

source

pub fn new_bitfield_9( adv_itvl_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

source

pub fn device_addr_is_present(&self) -> c_uint

source

pub fn set_device_addr_is_present(&mut self, val: c_uint)

source

pub fn new_bitfield_10( device_addr_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

source

pub fn le_role_is_present(&self) -> c_uint

source

pub fn set_le_role_is_present(&mut self, val: c_uint)

source

pub fn new_bitfield_11( le_role_is_present: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

source§

impl Clone for ble_hs_adv_fields

source§

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)

Performs copy-assignment from source. Read more
source§

impl Debug for ble_hs_adv_fields

source§

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

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

impl Default for ble_hs_adv_fields

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Copy,

§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
§

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

Performs the conversion.
§

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

§

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

The type returned in the event of a conversion error.
§

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

Performs the conversion.