EasyManuals Logo

Espressif ESP32-S2 User Manual

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #336 background imageLoading...
Page #336 background image
Chapter 2. API Reference
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
Structures
struct ledc_cb_param_t
LEDC callback parameter.
Public Members
ledc_cb_event_t event
Event name
uint32_t speed_mode
Speed mode of the LEDC channel group
uint32_t channel
LEDC channel (0 - LEDC_CHANNEL_MAX-1)
uint32_t duty
LEDC current duty of the channel, the range of duty is [0, (2**duty_resolution) - 1]
struct ledc_cbs_t
Group of supported LEDC callbacks.
Note The callbacks are all running under ISR environment
Public Members
ledc_cb_t fade_cb
LEDC fade_end callback function
Macros
LEDC_APB_CLK_HZ
LEDC_REF_CLK_HZ
LEDC_ERR_DUTY
LEDC_ERR_VAL
Type Definitions
typedef intr_handle_t ledc_isr_handle_t
typedef bool (*ledc_cb_t)(const ledc_cb_param_t *param, void *user_arg)
Type of LEDC event callback.
Parameters
param: LEDC callback parameter
user_arg: User registered data
Enumerations
enum ledc_cb_event_t
LEDC callback event type.
Values:
LEDC_FADE_END_EVT
LEDC fade end event
Espressif Systems 325
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Espressif ESP32-S2 and is the answer not in the manual?

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish