pub struct Config { /* private fields */ }unstable only.Expand description
Bluetooth controller configuration.
Implementations§
Source§impl Config
impl Config
Sourcepub fn with_task_priority(self, task_priority: u8) -> Self
pub fn with_task_priority(self, task_priority: u8) -> Self
Assign the given value to the task_priority field.
Sourcepub fn task_priority(&self) -> u8
pub fn task_priority(&self) -> u8
The priority of the RTOS task.
Sourcepub fn with_task_stack_size(self, task_stack_size: u16) -> Self
pub fn with_task_stack_size(self, task_stack_size: u16) -> Self
Assign the given value to the task_stack_size field.
Sourcepub fn task_stack_size(&self) -> u16
pub fn task_stack_size(&self) -> u16
The stack size of the RTOS task.
Sourcepub fn with_max_connections(self, max_connections: u8) -> Self
pub fn with_max_connections(self, max_connections: u8) -> Self
Assign the given value to the max_connections field.
Sourcepub fn max_connections(&self) -> u8
pub fn max_connections(&self) -> u8
The maximum number of simultaneous connections.
Range: 1 - 9
Sourcepub fn with_scan_duplicate_list_count(
self,
scan_duplicate_list_count: u16,
) -> Self
pub fn with_scan_duplicate_list_count( self, scan_duplicate_list_count: u16, ) -> Self
Assign the given value to the scan_duplicate_list_count field.
Sourcepub fn scan_duplicate_list_count(&self) -> u16
pub fn scan_duplicate_list_count(&self) -> u16
Maximum number of devices in scan duplicate filtering list.
Range: 10 - 1000
Sourcepub fn with_scan_duplicate_refresh_period(
self,
scan_duplicate_refresh_period: u16,
) -> Self
pub fn with_scan_duplicate_refresh_period( self, scan_duplicate_refresh_period: u16, ) -> Self
Assign the given value to the scan_duplicate_refresh_period field.
Sourcepub fn scan_duplicate_refresh_period(&self) -> u16
pub fn scan_duplicate_refresh_period(&self) -> u16
Scan duplicate filtering list refresh period in seconds.
Range: 0 - 1000 seconds
Sourcepub fn with_ble_scan_backoff(self, ble_scan_backoff: bool) -> Self
pub fn with_ble_scan_backoff(self, ble_scan_backoff: bool) -> Self
Assign the given value to the ble_scan_backoff field.
Sourcepub fn ble_scan_backoff(&self) -> bool
pub fn ble_scan_backoff(&self) -> bool
Enable BLE scan backoff.
Sourcepub fn with_enc_key_sz_min(self, enc_key_sz_min: u8) -> Self
pub fn with_enc_key_sz_min(self, enc_key_sz_min: u8) -> Self
Assign the given value to the enc_key_sz_min field.
Sourcepub fn enc_key_sz_min(&self) -> u8
pub fn enc_key_sz_min(&self) -> u8
Minimum encryption key size.
Range: 7 - 16
Sourcepub fn with_verify_access_address(self, verify_access_address: bool) -> Self
pub fn with_verify_access_address(self, verify_access_address: bool) -> Self
Assign the given value to the verify_access_address field.
Sourcepub fn verify_access_address(&self) -> bool
pub fn verify_access_address(&self) -> bool
Enable verification of the Access Address within the CONNECT_IND PDU.
Sourcepub fn with_channel_assessment(self, channel_assessment: bool) -> Self
pub fn with_channel_assessment(self, channel_assessment: bool) -> Self
Assign the given value to the channel_assessment field.
Sourcepub fn channel_assessment(&self) -> bool
pub fn channel_assessment(&self) -> bool
Enable BLE channel assessment.
Sourcepub fn with_disconnect_llcp_conn_update(
self,
disconnect_llcp_conn_update: bool,
) -> Self
pub fn with_disconnect_llcp_conn_update( self, disconnect_llcp_conn_update: bool, ) -> Self
Assign the given value to the disconnect_llcp_conn_update field.
Sourcepub fn disconnect_llcp_conn_update(&self) -> bool
pub fn disconnect_llcp_conn_update(&self) -> bool
Disconnect when Instant Passed (0x28) occurs during ACL connection update.
Sourcepub fn with_disconnect_llcp_chan_map_update(
self,
disconnect_llcp_chan_map_update: bool,
) -> Self
pub fn with_disconnect_llcp_chan_map_update( self, disconnect_llcp_chan_map_update: bool, ) -> Self
Assign the given value to the disconnect_llcp_chan_map_update field.
Sourcepub fn disconnect_llcp_chan_map_update(&self) -> bool
pub fn disconnect_llcp_chan_map_update(&self) -> bool
Disconnect when Instant Passed (0x28) occurs during ACL channel map update.
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)