Function esp_idf_svc::hal::sys::esp_bt_controller_enable

source ·
pub unsafe extern "C" fn esp_bt_controller_enable(mode: u32) -> i32
Expand description

@brief Enable BT controller. Due to a known issue, you cannot call esp_bt_controller_enable() a second time to change the controller mode dynamically. To change controller mode, call esp_bt_controller_disable() and then call esp_bt_controller_enable() with the new mode. @param mode : the mode(BLE/BT/BTDM) to enable. For compatible of API, retain this argument. This mode must be equal as the mode in “cfg” of esp_bt_controller_init(). @return ESP_OK - success, other - failed