Skip to main content

esp_bt_controller_config_t

Struct esp_bt_controller_config_t 

Source
#[repr(C)]
pub struct esp_bt_controller_config_t {
Show 30 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 enc_key_sz_min: u8, pub dup_list_refresh_period: u16, pub ble_scan_backoff: bool, pub ble_llcp_disc_flag: u8, pub ble_aa_check: bool, pub ble_chan_ass_en: u8, pub ble_ping_en: u8, pub magic: u32,
}
Expand description

@brief Bluetooth Controller config options @note 1. For parameters configurable through menuconfig, it is recommended to adjust them via the menuconfig interface. Please refer to menuconfig for details on the range and default values. 2. It is not recommended to modify the values for parameters which are not configurable through menuconfig.

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

< UART number as HCI I/O interface. Configurable in menuconfig.

  • 1 - URAT 1 (default)
  • 2 - URAT 2
§hci_uart_baudrate: u32

< UART baudrate. Configurable in menuconfig.

  • Range: 115200 - 921600
  • Default: 921600
§scan_duplicate_mode: u8

< Scan duplicate filtering mode. Configurable in menuconfig.

  • 0 - Normal scan duplicate filtering mode (default)
  • 1 - Special scan duplicate filtering mode for BLE Mesh
§scan_duplicate_type: u8

< Scan duplicate filtering type. If scan_duplicate_mode is set to 1, this parameter will be ignored. Configurable in menuconfig.

  • 0 - Filter scan duplicates by device address only (default)
  • 1 - Filter scan duplicates by advertising data only, even if they originate from different devices.
  • 2 - Filter scan duplicated by device address and advertising data.
§normal_adv_size: u16

< Maximum number of devices in scan duplicate filtering list. Configurable in menuconfig

  • Range: 10 - 1000
  • Default: 100
§mesh_adv_size: u16

< Maximum number of Mesh advertising packets in scan duplicate filtering list. Configurable in menuconfig

  • Range: 10 - 1000
  • Default: 100
§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. Configurable in menuconfig

  • 1 - BLE mode
  • 2 - Classic Bluetooth mode
  • 3 - Dual mode
  • 4 - Others: Invalid
§ble_max_conn: u8

< Maximum number of BLE connections. Configurable in menuconfig

  • Range: 1 - 9
  • Default: 3
§bt_max_acl_conn: u8

< Maximum number of BR/EDR ACL connections. Configurable in menuconfig

  • Range: 1 - 7
  • Default: 2
§bt_sco_datapath: u8

< SCO data path. Configurable in menuconfig

  • 0 - HCI module (default)
  • 1 - PCM module
§auto_latency: bool

< True if BLE auto latency is enabled, used to enhance Classic Bluetooth performance in the Dual mode; false otherwise (default). Configurable in menuconfig

§bt_legacy_auth_vs_evt: bool

< True if BR/EDR Legacy Authentication Vendor Specific Event is enabled (default in the classic bluetooth or Dual mode), 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

  • Range: 0 - 3
  • Default: 0
§ble_sca: u8

< BLE low power crystal accuracy index. Configurable in menuconfig

  • 0 - BTDM_BLE_DEFAULT_SCA_500PPM
  • 1 - BTDM_BLE_DEFAULT_SCA_250PPM (default)
§pcm_role: u8

< PCM role. Configurable in menuconfig

  • 0 - PCM master (default)
  • 1 - PCM slave (default)
§pcm_polar: u8

< PCM polarity (falling clk edge & rising clk edge). Configurable in menuconfig

  • 0 - Falling Edge (default)
  • 1 - Rising Edge
§pcm_fsyncshp: u8

< Physical shape of the PCM Frame Synchronization signal. Configurable in menuconfig

  • 0 - Stereo Mode (default)
  • 1 - Mono Mode 1
  • 2 - Mono Mode 2
§hli: bool

< True if using high-level (level 4) interrupt (default); false otherwise. Configurable in menuconfig

§enc_key_sz_min: u8

< Minimum size of the encryption key

  • Range: 7 - 16
  • Default: 7
§dup_list_refresh_period: u16

< Scan duplicate filtering list refresh period in seconds. Configurable in menuconfig

  • Range: 0 - 100 seconds
  • Default: 0 second
§ble_scan_backoff: bool

< True if BLE scan backoff is enabled; false otherwise (default). Configurable in menuconfig

§ble_llcp_disc_flag: u8

< Flag indicating whether the Controller disconnects after Instant Passed (0x28) error occurs. Configurable in menuconfig.

  • The Controller does not disconnect after Instant Passed (0x28) by default.
§ble_aa_check: bool

< True if adds a verification step for the Access Address within the CONNECT_IND PDU; false otherwise (default). Configurable in menuconfig

§ble_chan_ass_en: u8

< True if BLE channel assessment is enabled (default), false otherwise. Configurable in menuconfig

§ble_ping_en: u8

< True if BLE ping procedure is enabled (default), 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 duplicate of the value. Read more
1.0.0 (const: unstable)§

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: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.