[−][src]Struct apache_nimble_sys::ble_gap_adv_params
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]
fn clone(&self) -> ble_gap_adv_params
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
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>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,