Function esp_idf_svc::hal::sys::esp_bt_controller_init

source ·
pub unsafe extern "C" fn esp_bt_controller_init(
    cfg: *mut esp_bt_controller_config_t,
) -> i32
Expand description

@brief Initialize BT controller to allocate task and other resource. This function should be called only once, before any other BT functions are called. @param cfg: Initial configuration of BT controller. Different from previous version, there’s a mode and some connection configuration in “cfg” to configure controller work mode and allocate the resource which is needed. @return ESP_OK - success, other - failed