Struct esp_idf_svc::sys::esp_bt_controller_config_t

source ·
#[repr(C)]
pub struct esp_bt_controller_config_t {
Show 37 fields pub magic: u32, pub version: u32, pub controller_task_stack_size: u16, pub controller_task_prio: u8, pub controller_task_run_cpu: u8, pub bluetooth_mode: u8, pub ble_max_act: u8, pub sleep_mode: u8, pub sleep_clock: u8, pub ble_st_acl_tx_buf_nb: u8, pub ble_hw_cca_check: u8, pub ble_adv_dup_filt_max: u16, pub coex_param_en: bool, pub ce_len_type: u8, pub coex_use_hooks: bool, pub hci_tl_type: u8, pub hci_tl_funcs: *mut esp_bt_hci_tl_t, pub txant_dft: u8, pub rxant_dft: u8, pub txpwr_dft: u8, pub cfg_mask: u32, pub scan_duplicate_mode: u8, pub scan_duplicate_type: u8, pub normal_adv_size: u16, pub mesh_adv_size: u16, pub coex_phy_coded_tx_rx_time_limit: u8, pub hw_target_code: u32, pub slave_ce_len_min: u8, pub hw_recorrect_en: u8, pub cca_thresh: u8, pub scan_backoff_upperlimitmax: u16, pub dup_list_refresh_period: u16, pub ble_50_feat_supp: bool, pub ble_cca_mode: u8, pub ble_data_lenth_zero_aux: u8, pub ble_chan_ass_en: u8, pub ble_ping_en: u8,
}
Expand description

@brief Controller config options, depend on config mask. Config mask indicate which functions enabled, this means some options or parameters of some functions enabled by config mask.

Fields§

§magic: u32

< Magic number

§version: u32

< version number of the defined structure

§controller_task_stack_size: u16

< Bluetooth controller task stack size

§controller_task_prio: u8

< Bluetooth controller task priority

§controller_task_run_cpu: u8

< CPU num that Bluetooth controller task runs on

§bluetooth_mode: u8

< Controller mode: BR/EDR, BLE or Dual Mode

§ble_max_act: u8

< BLE maximum number of air activities

§sleep_mode: u8

< controller sleep mode

§sleep_clock: u8

< controller sleep clock

§ble_st_acl_tx_buf_nb: u8

< controller static ACL TX BUFFER number

§ble_hw_cca_check: u8

< controller hardware triggered CCA check

§ble_adv_dup_filt_max: u16

< maximum number of duplicate scan filter

§coex_param_en: bool

< deprecated

§ce_len_type: u8

< connection event length computation method

§coex_use_hooks: bool

< deprecated

§hci_tl_type: u8

< HCI transport layer, UART, VHCI, etc

§hci_tl_funcs: *mut esp_bt_hci_tl_t

< hci transport functions used, must be set when hci_tl_type is UART

§txant_dft: u8

< default Tx antenna

§rxant_dft: u8

< default Rx antenna

§txpwr_dft: u8

< default Tx power

§cfg_mask: u32

< Configuration mask to set specific options

§scan_duplicate_mode: u8

< scan duplicate mode

§scan_duplicate_type: u8

< scan duplicate type

§normal_adv_size: u16

< Normal adv size for scan duplicate

§mesh_adv_size: u16

< Mesh adv size for scan duplicate

§coex_phy_coded_tx_rx_time_limit: u8

< limit on max tx/rx time in case of connection using CODED-PHY with Wi-Fi coexistence

§hw_target_code: u32

< hardware target

§slave_ce_len_min: u8

< slave minimum ce length

§hw_recorrect_en: u8

< Hardware re-correction enabled

§cca_thresh: u8

< cca threshold

§scan_backoff_upperlimitmax: u16

< scan backoff upperlimitmax value

§dup_list_refresh_period: u16

< duplicate scan list refresh time

§ble_50_feat_supp: bool

< BLE 5.0 feature support

§ble_cca_mode: u8

< BLE CCA mode

§ble_data_lenth_zero_aux: u8

< Config ext adv aux option

§ble_chan_ass_en: u8

< BLE channel assessment enable

§ble_ping_en: u8

< BLE ping procedure enable

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<(), Error>

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,

§

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> 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> 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.