pub unsafe extern "C" fn ledc_cb_register(
    speed_mode: u32,
    channel: u32,
    cbs: *mut ledc_cbs_t,
    user_arg: *mut c_void
) -> i32
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_ERR_INVALID_ARG Parameter error - ESP_OK Success - ESP_ERR_INVALID_STATE Fade function not installed. - ESP_FAIL Fade function init error