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

source§

fn clone(&self) -> esp_bt_controller_config_t

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for esp_bt_controller_config_t

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for esp_bt_controller_config_t

source§

fn default() -> esp_bt_controller_config_t

Returns the “default value” for a type. Read more
source§

impl Copy for esp_bt_controller_config_t

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Copy,

§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where 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>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.