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_task_cpu(self, task_cpu: Cpu) -> Self
pub fn with_task_cpu(self, task_cpu: Cpu) -> Self
Assign the given value to the task_cpu field.
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 - 10
Sourcepub fn with_qa_test_mode(self, qa_test_mode: bool) -> Self
pub fn with_qa_test_mode(self, qa_test_mode: bool) -> Self
Assign the given value to the qa_test_mode field.
Sourcepub fn qa_test_mode(&self) -> bool
pub fn qa_test_mode(&self) -> bool
Enable QA test mode.
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_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
Enables verification of the Access Address within the CONNECT_IND PDU.
Enabling this option will add stricter verification of the Access Address in the
CONNECT_IND PDU. This improves security by ensuring that only connection requests with
valid Access Addresses are accepted. If disabled, only basic checks are applied,
improving compatibility.
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_default_tx_antenna(self, default_tx_antenna: Antenna) -> Self
pub fn with_default_tx_antenna(self, default_tx_antenna: Antenna) -> Self
Assign the given value to the default_tx_antenna field.
Sourcepub fn default_tx_antenna(&self) -> Antenna
pub fn default_tx_antenna(&self) -> Antenna
Default TX antenna.
Sourcepub fn with_default_rx_antenna(self, default_rx_antenna: Antenna) -> Self
pub fn with_default_rx_antenna(self, default_rx_antenna: Antenna) -> Self
Assign the given value to the default_rx_antenna field.
Sourcepub fn default_rx_antenna(&self) -> Antenna
pub fn default_rx_antenna(&self) -> Antenna
Default RX antenna.
Sourcepub fn with_default_tx_power(self, default_tx_power: TxPower) -> Self
pub fn with_default_tx_power(self, default_tx_power: TxPower) -> Self
Assign the given value to the default_tx_power field.
Sourcepub fn default_tx_power(&self) -> TxPower
pub fn default_tx_power(&self) -> TxPower
Default TX power.
Sourcepub fn with_limit_time_for_coded_phy_connection(
self,
limit_time_for_coded_phy_connection: bool,
) -> Self
pub fn with_limit_time_for_coded_phy_connection( self, limit_time_for_coded_phy_connection: bool, ) -> Self
Assign the given value to the limit_time_for_coded_phy_connection field.
Sourcepub fn limit_time_for_coded_phy_connection(&self) -> bool
pub fn limit_time_for_coded_phy_connection(&self) -> bool
Coexistence: limit on MAX Tx/Rx time for coded-PHY connection.
Sourcepub fn with_hw_recorrect_en(self, hw_recorrect_en: bool) -> Self
pub fn with_hw_recorrect_en(self, hw_recorrect_en: bool) -> Self
Assign the given value to the hw_recorrect_en field.
Sourcepub fn hw_recorrect_en(&self) -> bool
pub fn hw_recorrect_en(&self) -> bool
Enable / disable uncoded phy / coded phy hardware re-correction.
Sourcepub fn with_cca_mode(self, cca_mode: CcaMode) -> Self
pub fn with_cca_mode(self, cca_mode: CcaMode) -> Self
Assign the given value to the cca_mode field.
Sourcepub fn with_cca_threshold(self, cca_threshold: u8) -> Self
pub fn with_cca_threshold(self, cca_threshold: u8) -> Self
Assign the given value to the cca_threshold field.
Sourcepub fn cca_threshold(&self) -> u8
pub fn cca_threshold(&self) -> u8
Absolute value of hardware-triggered CCA threshold.
The CCA threshold is always negative.
If the channel assessment result exceeds the CCA threshold (e.g. -75 dBm), indicating the channel is busy, the hardware will not transmit packets on that channel.
Range: 20 dBm - 100 dBm
Sourcepub fn with_data_length_zero_aux(self, data_length_zero_aux: bool) -> Self
pub fn with_data_length_zero_aux(self, data_length_zero_aux: bool) -> Self
Assign the given value to the data_length_zero_aux field.
Sourcepub fn data_length_zero_aux(&self) -> bool
pub fn data_length_zero_aux(&self) -> bool
Enable / disable auxiliary packets when the extended ADV data length is zero.
Sourcepub fn with_encryption(self, encryption: bool) -> Self
pub fn with_encryption(self, encryption: bool) -> Self
Assign the given value to the encryption field.
Sourcepub fn encryption(&self) -> bool
pub fn encryption(&self) -> bool
Enable / disable encryption.
Sourcepub fn with_connection(self, connection: bool) -> Self
pub fn with_connection(self, connection: bool) -> Self
Assign the given value to the connection field.
Sourcepub fn connection(&self) -> bool
pub fn connection(&self) -> bool
Enable / disable connection.
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.
Sourcepub fn with_disconnect_llcp_phy_update(
self,
disconnect_llcp_phy_update: bool,
) -> Self
pub fn with_disconnect_llcp_phy_update( self, disconnect_llcp_phy_update: bool, ) -> Self
Assign the given value to the disconnect_llcp_phy_update field.
Sourcepub fn disconnect_llcp_phy_update(&self) -> bool
pub fn disconnect_llcp_phy_update(&self) -> bool
Disconnect when Instant Passed (0x28) occurs during ACL PHY 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)