[−][src]Struct nrf_softdevice_s122::ble_gap_scan_params_t
@brief GAP scanning parameters.
Fields
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
scan_phys: u8
< Bitfield of PHYs to scan on. If set to @ref BLE_GAP_PHY_AUTO, scan_phys will default to @ref BLE_GAP_PHY_1MBPS. Only @ref BLE_GAP_PHY_1MBPS is supported for this SoftDevice.
interval_us: u32
< Scan interval in us. @sa BLE_GAP_SCAN_INTERVALS.
window_us: u32
< Scan window in us. @sa BLE_GAP_SCAN_WINDOW. If scan_phys contains multiple phys, then interval shall be larger than or equal to the sum of scan window sizes. This parameter represents the time set aside for each scan window. That is, the actual listening time is slightly less. See the SoftDevice Specification for details.
timeout: u16
< Scan timeout in 10 ms units. @sa BLE_GAP_SCAN_TIMEOUT.
channel_mask: ble_gap_ch_mask_t
< Channel mask for primary and secondary advertising channels. At least one of the primary channels, that is channel index 37-39, must be set to 0. Masking away secondary channels is not supported.
Implementations
impl ble_gap_scan_params_t
[src]
pub fn extended(&self) -> u8
[src]
pub fn set_extended(&mut self, val: u8)
[src]
pub fn report_incomplete_evts(&self) -> u8
[src]
pub fn set_report_incomplete_evts(&mut self, val: u8)
[src]
pub fn active(&self) -> u8
[src]
pub fn set_active(&mut self, val: u8)
[src]
pub fn filter_policy(&self) -> u8
[src]
pub fn set_filter_policy(&mut self, val: u8)
[src]
pub fn new_bitfield_1(
extended: u8,
report_incomplete_evts: u8,
active: u8,
filter_policy: u8
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]
extended: u8,
report_incomplete_evts: u8,
active: u8,
filter_policy: u8
) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations
impl Clone for ble_gap_scan_params_t
[src]
fn clone(&self) -> ble_gap_scan_params_t
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ble_gap_scan_params_t
[src]
impl Debug for ble_gap_scan_params_t
[src]
Auto Trait Implementations
impl Send for ble_gap_scan_params_t
impl Sync for ble_gap_scan_params_t
impl Unpin for ble_gap_scan_params_t
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>,