[][src]Struct apache_nimble_sys::ble_gap_adv_params

#[repr(C)]pub struct ble_gap_adv_params {
    pub conn_mode: u8,
    pub disc_mode: u8,
    pub itvl_min: u16,
    pub itvl_max: u16,
    pub channel_map: u8,
    pub filter_policy: u8,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub __bindgen_padding_0: u8,
}

Advertising parameters

Fields

conn_mode: u8

Advertising mode. Can be one of following constants:

  • BLE_GAP_CONN_MODE_NON (non-connectable; 3.C.9.3.2).
  • BLE_GAP_CONN_MODE_DIR (directed-connectable; 3.C.9.3.3).
  • BLE_GAP_CONN_MODE_UND (undirected-connectable; 3.C.9.3.4).
disc_mode: u8

Discoverable mode. Can be one of following constants:

  • BLE_GAP_DISC_MODE_NON (non-discoverable; 3.C.9.2.2).
  • BLE_GAP_DISC_MODE_LTD (limited-discoverable; 3.C.9.2.3).
  • BLE_GAP_DISC_MODE_GEN (general-discoverable; 3.C.9.2.4).
itvl_min: u16

Minimum advertising interval, if 0 stack use sane defaults

itvl_max: u16

Maximum advertising interval, if 0 stack use sane defaults

channel_map: u8

Advertising channel map , if 0 stack use sane defaults

filter_policy: u8

Advertising Filter policy

_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>__bindgen_padding_0: u8

Implementations

impl ble_gap_adv_params[src]

pub fn high_duty_cycle(&self) -> u8[src]

pub fn set_high_duty_cycle(&mut self, val: u8)[src]

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

Trait Implementations

impl Clone for ble_gap_adv_params[src]

impl Copy for ble_gap_adv_params[src]

impl Debug for ble_gap_adv_params[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.