riot_sys::bindgen

Struct ble_hs_adv_fields

Source
#[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

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 appearance_is_present(&self) -> c_uint

Source

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

Source

pub fn new_bitfield_6( 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_7( adv_itvl_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 · Source§

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§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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 T
where U: Into<T>,

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.

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