ledc_cb_register() function
LEDC callback registration function
Arguments
speed_mode
Select the LEDC channel group with specified speed mode. Note that not all targets support high speed mode.
channel
LEDC channel index (0 - LEDC_CHANNEL_MAX-1), select from ledc_channel_t
cbs
Group of LEDC callback functions
user_arg
user registered data for the callback function
Return value
- ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error - ESP_ERR_INVALID_STATE Channel not initialized - ESP_FAIL Fade function init error
Notes
The callback is called from an ISR, it must never attempt to block, and any FreeRTOS API called must be ISR capable.
Examples
ledc_cb_register() is referenced by 1 libraries and example projects: