Function esp_idf_sys::ledc_cb_register

source ยท
pub unsafe extern "C" fn ledc_cb_register(
    speed_mode: ledc_mode_t,
    channel: ledc_channel_t,
    cbs: *mut ledc_cbs_t,
    user_arg: *mut c_void,
) -> esp_err_t
Expand description

@brief LEDC callback registration function

@note The callback is called from an ISR, it must never attempt to block, and any FreeRTOS API called must be ISR capable.

@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 index (0 - LEDC_CHANNEL_MAX-1), select from ledc_channel_t @param cbs Group of LEDC callback functions @param user_arg user registered data for the callback function

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error - ESP_ERR_INVALID_STATE Channel not initialized - ESP_FAIL Fade function init error