Function esp_idf_sys::ledc_stop
source ยท pub unsafe extern "C" fn ledc_stop(
speed_mode: ledc_mode_t,
channel: ledc_channel_t,
idle_level: u32,
) -> esp_err_t
Expand description
@brief LEDC stop. Disable LEDC output, and set idle level
@note If CONFIG_LEDC_CTRL_FUNC_IN_IRAM
is enabled, this function will be placed in the IRAM by linker,
makes it possible to execute even when the Cache is disabled.
@note This function is allowed to run within ISR context.
@param speed_mode Select the LEDC channel group with specified speed mode. Note that not all targets support high speed mode. @param channel LEDC channel (0 - LEDC_CHANNEL_MAX-1), select from ledc_channel_t @param idle_level Set output idle level after LEDC stops.
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error