Struct esp_idf_sys::esp_bt_controller_config_t
source · #[repr(C)]pub struct esp_bt_controller_config_t {Show 25 fields
pub controller_task_stack_size: u16,
pub controller_task_prio: u8,
pub hci_uart_no: u8,
pub hci_uart_baudrate: u32,
pub scan_duplicate_mode: u8,
pub scan_duplicate_type: u8,
pub normal_adv_size: u16,
pub mesh_adv_size: u16,
pub send_adv_reserved_size: u16,
pub controller_debug_flag: u32,
pub mode: u8,
pub ble_max_conn: u8,
pub bt_max_acl_conn: u8,
pub bt_sco_datapath: u8,
pub auto_latency: bool,
pub bt_legacy_auth_vs_evt: bool,
pub bt_max_sync_conn: u8,
pub ble_sca: u8,
pub pcm_role: u8,
pub pcm_polar: u8,
pub pcm_fsyncshp: u8,
pub hli: bool,
pub dup_list_refresh_period: u16,
pub ble_scan_backoff: bool,
pub magic: u32,
}
Expand description
@brief Bluetooth Controller config options
@note
1. For parameters configurable in menuconfig, please refer to menuconfig for details on range and default values.
2. It is not recommended to modify the default values of controller_task_stack_size
, controller_task_prio
.
Fields§
§controller_task_stack_size: u16
< Bluetooth Controller task stack size in bytes
controller_task_prio: u8
< Bluetooth Controller task priority
hci_uart_no: u8
< Indicates UART number if using UART1/2 as HCI I/O interface. Configurable in menuconfig.
hci_uart_baudrate: u32
< Indicates UART baudrate if using UART1/2 as HCI I/O interface. Configurable in menuconfig.
scan_duplicate_mode: u8
< Scan duplicate filtering mode. Configurable in menuconfig.
scan_duplicate_type: u8
< Scan duplicate filtering type. Configurable in menuconfig.
normal_adv_size: u16
< Maximum number of devices in scan duplicate filtering list. Configurable in menuconfig.
mesh_adv_size: u16
< Maximum number of Mesh ADV packets in scan duplicate filtering list. Configurable in menuconfig.
send_adv_reserved_size: u16
< Controller minimum memory value in bytes. Internal use only
controller_debug_flag: u32
< Controller debug log flag. Internal use only
mode: u8
< Controller mode:
1: BLE mode
2: Classic Bluetooth mode
3: Dual mode
Others: Invalid
Configurable in menuconfig
ble_max_conn: u8
< Maximum number of BLE connections. Configurable in menuconfig.
bt_max_acl_conn: u8
< Maximum number of BR/EDR ACL connections. Configurable in menuconfig.
bt_sco_datapath: u8
< SCO data path, i.e. HCI or PCM module. Configurable in menuconfig.
auto_latency: bool
< True if BLE auto latency is enabled, used to enhance Classic Bluetooth performance; false otherwise. Configurable in menuconfig.
bt_legacy_auth_vs_evt: bool
< True if BR/EDR Legacy Authentication Vendor Specific Event is enabled, which is required to protect from BIAS attack; false otherwise. Configurable in menuconfig.
bt_max_sync_conn: u8
< Maximum number of BR/EDR synchronous connections. Configurable in menuconfig.
ble_sca: u8
< BLE low power crystal accuracy index. Configurable in menuconfig.
pcm_role: u8
< PCM role (master & slave). Configurable in menuconfig.
pcm_polar: u8
< PCM polar trig (falling clk edge & rising clk edge). Configurable in menuconfig.
pcm_fsyncshp: u8
< Physical shape of the PCM Frame Synchronization signal (stereo mode & mono mode). Configurable in menuconfig
hli: bool
< True if using high level interrupt; false otherwise. Configurable in menuconfig.
dup_list_refresh_period: u16
< Scan duplicate filtering list refresh period in seconds. Configurable in menuconfig.
ble_scan_backoff: bool
< True if BLE scan backoff is enabled; false otherwise. Configurable in menuconfig.
magic: u32
< Magic number
Trait Implementations§
source§impl Clone for esp_bt_controller_config_t
impl Clone for esp_bt_controller_config_t
source§fn clone(&self) -> esp_bt_controller_config_t
fn clone(&self) -> esp_bt_controller_config_t
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for esp_bt_controller_config_t
impl Debug for esp_bt_controller_config_t
source§impl Default for esp_bt_controller_config_t
impl Default for esp_bt_controller_config_t
source§fn default() -> esp_bt_controller_config_t
fn default() -> esp_bt_controller_config_t
impl Copy for esp_bt_controller_config_t
Auto Trait Implementations§
impl Freeze for esp_bt_controller_config_t
impl RefUnwindSafe for esp_bt_controller_config_t
impl Send for esp_bt_controller_config_t
impl Sync for esp_bt_controller_config_t
impl Unpin for esp_bt_controller_config_t
impl UnwindSafe for esp_bt_controller_config_t
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)