Function esp_idf_sys::esp_bredr_tx_power_set

source ยท
pub unsafe extern "C" fn esp_bredr_tx_power_set(
    min_power_level: esp_power_level_t,
    max_power_level: esp_power_level_t,
) -> esp_err_t
Expand description

@brief Set BR/EDR TX power

BR/EDR power control will use the power within the range of minimum value and maximum value. The power level will affect the global BR/EDR TX power for operations such as inquiry, page, and connection.

@note 1. Please call this function after esp_bt_controller_enable() and before any functions that cause RF transmission, such as performing discovery, profile initialization, and so on. 2. For BR/EDR to use the new TX power for inquiry, call this function before starting an inquiry. If BR/EDR is already inquiring, restart the inquiry after calling this function.

@param[in] min_power_level The minimum power level. The default value is ESP_PWR_LVL_N0. @param[in] max_power_level The maximum power level. The default value is ESP_PWR_LVL_P3.

@return - ESP_OK: Success - ESP_ERR_INVALID_ARG: Invalid argument - ESP_ERR_INVALID_STATE: Invalid Bluetooth Controller state