esp-idf/components/soc/esp32c6/include/soc/ledc_reg.h
2022-08-22 12:11:40 +08:00

2776 lines
125 KiB
C

/**
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdint.h>
#include "soc/soc.h"
#ifdef __cplusplus
extern "C" {
#endif
/** LEDC_CH0_CONF0_REG register
* Configuration register 0 for channel 0
*/
#define LEDC_CH0_CONF0_REG (DR_REG_LEDC_BASE + 0x0)
/** LEDC_TIMER_SEL_CH0 : R/W; bitpos: [1:0]; default: 0;
* This field is used to select one of timers for channel 0.
*
* 0: select timer0, 1: select timer1, 2: select timer2, 3: select timer3
*/
#define LEDC_TIMER_SEL_CH0 0x00000003U
#define LEDC_TIMER_SEL_CH0_M (LEDC_TIMER_SEL_CH0_V << LEDC_TIMER_SEL_CH0_S)
#define LEDC_TIMER_SEL_CH0_V 0x00000003U
#define LEDC_TIMER_SEL_CH0_S 0
/** LEDC_SIG_OUT_EN_CH0 : R/W; bitpos: [2]; default: 0;
* Set this bit to enable signal output on channel 0.
*/
#define LEDC_SIG_OUT_EN_CH0 (BIT(2))
#define LEDC_SIG_OUT_EN_CH0_M (LEDC_SIG_OUT_EN_CH0_V << LEDC_SIG_OUT_EN_CH0_S)
#define LEDC_SIG_OUT_EN_CH0_V 0x00000001U
#define LEDC_SIG_OUT_EN_CH0_S 2
/** LEDC_IDLE_LV_CH0 : R/W; bitpos: [3]; default: 0;
* This bit is used to control the output value when channel 0 is inactive (when
* LEDC_SIG_OUT_EN_CH0 is 0).
*/
#define LEDC_IDLE_LV_CH0 (BIT(3))
#define LEDC_IDLE_LV_CH0_M (LEDC_IDLE_LV_CH0_V << LEDC_IDLE_LV_CH0_S)
#define LEDC_IDLE_LV_CH0_V 0x00000001U
#define LEDC_IDLE_LV_CH0_S 3
/** LEDC_PARA_UP_CH0 : WT; bitpos: [4]; default: 0;
* This bit is used to update LEDC_HPOINT_CH0, LEDC_DUTY_START_CH0,
* LEDC_SIG_OUT_EN_CH0, LEDC_TIMER_SEL_CH0, LEDC_DUTY_NUM_CH0, LEDC_DUTY_CYCLE_CH0,
* LEDC_DUTY_SCALE_CH0, LEDC_DUTY_INC_CH0, and LEDC_OVF_CNT_EN_CH0 fields for channel
* 0, and will be automatically cleared by hardware.
*/
#define LEDC_PARA_UP_CH0 (BIT(4))
#define LEDC_PARA_UP_CH0_M (LEDC_PARA_UP_CH0_V << LEDC_PARA_UP_CH0_S)
#define LEDC_PARA_UP_CH0_V 0x00000001U
#define LEDC_PARA_UP_CH0_S 4
/** LEDC_OVF_NUM_CH0 : R/W; bitpos: [14:5]; default: 0;
* This register is used to configure the maximum times of overflow minus 1.
*
* The LEDC_OVF_CNT_CH0_INT interrupt will be triggered when channel 0 overflows for
* (LEDC_OVF_NUM_CH0 + 1) times.
*/
#define LEDC_OVF_NUM_CH0 0x000003FFU
#define LEDC_OVF_NUM_CH0_M (LEDC_OVF_NUM_CH0_V << LEDC_OVF_NUM_CH0_S)
#define LEDC_OVF_NUM_CH0_V 0x000003FFU
#define LEDC_OVF_NUM_CH0_S 5
/** LEDC_OVF_CNT_EN_CH0 : R/W; bitpos: [15]; default: 0;
* This bit is used to enable the ovf_cnt of channel 0.
*/
#define LEDC_OVF_CNT_EN_CH0 (BIT(15))
#define LEDC_OVF_CNT_EN_CH0_M (LEDC_OVF_CNT_EN_CH0_V << LEDC_OVF_CNT_EN_CH0_S)
#define LEDC_OVF_CNT_EN_CH0_V 0x00000001U
#define LEDC_OVF_CNT_EN_CH0_S 15
/** LEDC_OVF_CNT_RESET_CH0 : WT; bitpos: [16]; default: 0;
* Set this bit to reset the ovf_cnt of channel 0.
*/
#define LEDC_OVF_CNT_RESET_CH0 (BIT(16))
#define LEDC_OVF_CNT_RESET_CH0_M (LEDC_OVF_CNT_RESET_CH0_V << LEDC_OVF_CNT_RESET_CH0_S)
#define LEDC_OVF_CNT_RESET_CH0_V 0x00000001U
#define LEDC_OVF_CNT_RESET_CH0_S 16
/** LEDC_CH0_HPOINT_REG register
* High point register for channel 0
*/
#define LEDC_CH0_HPOINT_REG (DR_REG_LEDC_BASE + 0x4)
/** LEDC_HPOINT_CH0 : R/W; bitpos: [19:0]; default: 0;
* The output value changes to high when the selected timers has reached the value
* specified by this register.
*/
#define LEDC_HPOINT_CH0 0x000FFFFFU
#define LEDC_HPOINT_CH0_M (LEDC_HPOINT_CH0_V << LEDC_HPOINT_CH0_S)
#define LEDC_HPOINT_CH0_V 0x000FFFFFU
#define LEDC_HPOINT_CH0_S 0
/** LEDC_CH0_DUTY_REG register
* Initial duty cycle for channel 0
*/
#define LEDC_CH0_DUTY_REG (DR_REG_LEDC_BASE + 0x8)
/** LEDC_DUTY_CH0 : R/W; bitpos: [24:0]; default: 0;
* This register is used to change the output duty by controlling the Lpoint.
*
* The output value turns to low when the selected timers has reached the Lpoint.
*/
#define LEDC_DUTY_CH0 0x01FFFFFFU
#define LEDC_DUTY_CH0_M (LEDC_DUTY_CH0_V << LEDC_DUTY_CH0_S)
#define LEDC_DUTY_CH0_V 0x01FFFFFFU
#define LEDC_DUTY_CH0_S 0
/** LEDC_CH0_CONF1_REG register
* Configuration register 1 for channel 0
*/
#define LEDC_CH0_CONF1_REG (DR_REG_LEDC_BASE + 0xc)
/** LEDC_DUTY_START_CH0 : R/W/SC; bitpos: [31]; default: 0;
* Other configured fields in LEDC_CH0_CONF1_REG will start to take effect when this
* bit is set to 1.
*/
#define LEDC_DUTY_START_CH0 (BIT(31))
#define LEDC_DUTY_START_CH0_M (LEDC_DUTY_START_CH0_V << LEDC_DUTY_START_CH0_S)
#define LEDC_DUTY_START_CH0_V 0x00000001U
#define LEDC_DUTY_START_CH0_S 31
/** LEDC_CH0_DUTY_R_REG register
* Current duty cycle for channel 0
*/
#define LEDC_CH0_DUTY_R_REG (DR_REG_LEDC_BASE + 0x10)
/** LEDC_DUTY_CH0_R : RO; bitpos: [24:0]; default: 0;
* This register stores the current duty of output signal on channel 0.
*/
#define LEDC_DUTY_CH0_R 0x01FFFFFFU
#define LEDC_DUTY_CH0_R_M (LEDC_DUTY_CH0_R_V << LEDC_DUTY_CH0_R_S)
#define LEDC_DUTY_CH0_R_V 0x01FFFFFFU
#define LEDC_DUTY_CH0_R_S 0
/** LEDC_CH1_CONF0_REG register
* Configuration register 0 for channel 1
*/
#define LEDC_CH1_CONF0_REG (DR_REG_LEDC_BASE + 0x14)
/** LEDC_TIMER_SEL_CH1 : R/W; bitpos: [1:0]; default: 0;
* This field is used to select one of timers for channel 1.
*
* 0: select timer0, 1: select timer1, 2: select timer2, 3: select timer3
*/
#define LEDC_TIMER_SEL_CH1 0x00000003U
#define LEDC_TIMER_SEL_CH1_M (LEDC_TIMER_SEL_CH1_V << LEDC_TIMER_SEL_CH1_S)
#define LEDC_TIMER_SEL_CH1_V 0x00000003U
#define LEDC_TIMER_SEL_CH1_S 0
/** LEDC_SIG_OUT_EN_CH1 : R/W; bitpos: [2]; default: 0;
* Set this bit to enable signal output on channel 1.
*/
#define LEDC_SIG_OUT_EN_CH1 (BIT(2))
#define LEDC_SIG_OUT_EN_CH1_M (LEDC_SIG_OUT_EN_CH1_V << LEDC_SIG_OUT_EN_CH1_S)
#define LEDC_SIG_OUT_EN_CH1_V 0x00000001U
#define LEDC_SIG_OUT_EN_CH1_S 2
/** LEDC_IDLE_LV_CH1 : R/W; bitpos: [3]; default: 0;
* This bit is used to control the output value when channel 1 is inactive (when
* LEDC_SIG_OUT_EN_CH1 is 0).
*/
#define LEDC_IDLE_LV_CH1 (BIT(3))
#define LEDC_IDLE_LV_CH1_M (LEDC_IDLE_LV_CH1_V << LEDC_IDLE_LV_CH1_S)
#define LEDC_IDLE_LV_CH1_V 0x00000001U
#define LEDC_IDLE_LV_CH1_S 3
/** LEDC_PARA_UP_CH1 : WT; bitpos: [4]; default: 0;
* This bit is used to update LEDC_HPOINT_CH1, LEDC_DUTY_START_CH1,
* LEDC_SIG_OUT_EN_CH1, LEDC_TIMER_SEL_CH1, LEDC_DUTY_NUM_CH1, LEDC_DUTY_CYCLE_CH1,
* LEDC_DUTY_SCALE_CH1, LEDC_DUTY_INC_CH1, and LEDC_OVF_CNT_EN_CH1 fields for channel
* 1, and will be automatically cleared by hardware.
*/
#define LEDC_PARA_UP_CH1 (BIT(4))
#define LEDC_PARA_UP_CH1_M (LEDC_PARA_UP_CH1_V << LEDC_PARA_UP_CH1_S)
#define LEDC_PARA_UP_CH1_V 0x00000001U
#define LEDC_PARA_UP_CH1_S 4
/** LEDC_OVF_NUM_CH1 : R/W; bitpos: [14:5]; default: 0;
* This register is used to configure the maximum times of overflow minus 1.
*
* The LEDC_OVF_CNT_CH1_INT interrupt will be triggered when channel 1 overflows for
* (LEDC_OVF_NUM_CH1 + 1) times.
*/
#define LEDC_OVF_NUM_CH1 0x000003FFU
#define LEDC_OVF_NUM_CH1_M (LEDC_OVF_NUM_CH1_V << LEDC_OVF_NUM_CH1_S)
#define LEDC_OVF_NUM_CH1_V 0x000003FFU
#define LEDC_OVF_NUM_CH1_S 5
/** LEDC_OVF_CNT_EN_CH1 : R/W; bitpos: [15]; default: 0;
* This bit is used to enable the ovf_cnt of channel 1.
*/
#define LEDC_OVF_CNT_EN_CH1 (BIT(15))
#define LEDC_OVF_CNT_EN_CH1_M (LEDC_OVF_CNT_EN_CH1_V << LEDC_OVF_CNT_EN_CH1_S)
#define LEDC_OVF_CNT_EN_CH1_V 0x00000001U
#define LEDC_OVF_CNT_EN_CH1_S 15
/** LEDC_OVF_CNT_RESET_CH1 : WT; bitpos: [16]; default: 0;
* Set this bit to reset the ovf_cnt of channel 1.
*/
#define LEDC_OVF_CNT_RESET_CH1 (BIT(16))
#define LEDC_OVF_CNT_RESET_CH1_M (LEDC_OVF_CNT_RESET_CH1_V << LEDC_OVF_CNT_RESET_CH1_S)
#define LEDC_OVF_CNT_RESET_CH1_V 0x00000001U
#define LEDC_OVF_CNT_RESET_CH1_S 16
/** LEDC_CH1_HPOINT_REG register
* High point register for channel 1
*/
#define LEDC_CH1_HPOINT_REG (DR_REG_LEDC_BASE + 0x18)
/** LEDC_HPOINT_CH1 : R/W; bitpos: [19:0]; default: 0;
* The output value changes to high when the selected timers has reached the value
* specified by this register.
*/
#define LEDC_HPOINT_CH1 0x000FFFFFU
#define LEDC_HPOINT_CH1_M (LEDC_HPOINT_CH1_V << LEDC_HPOINT_CH1_S)
#define LEDC_HPOINT_CH1_V 0x000FFFFFU
#define LEDC_HPOINT_CH1_S 0
/** LEDC_CH1_DUTY_REG register
* Initial duty cycle for channel 1
*/
#define LEDC_CH1_DUTY_REG (DR_REG_LEDC_BASE + 0x1c)
/** LEDC_DUTY_CH1 : R/W; bitpos: [24:0]; default: 0;
* This register is used to change the output duty by controlling the Lpoint.
*
* The output value turns to low when the selected timers has reached the Lpoint.
*/
#define LEDC_DUTY_CH1 0x01FFFFFFU
#define LEDC_DUTY_CH1_M (LEDC_DUTY_CH1_V << LEDC_DUTY_CH1_S)
#define LEDC_DUTY_CH1_V 0x01FFFFFFU
#define LEDC_DUTY_CH1_S 0
/** LEDC_CH1_CONF1_REG register
* Configuration register 1 for channel 1
*/
#define LEDC_CH1_CONF1_REG (DR_REG_LEDC_BASE + 0x20)
/** LEDC_DUTY_START_CH1 : R/W/SC; bitpos: [31]; default: 0;
* Other configured fields in LEDC_CH1_CONF1_REG will start to take effect when this
* bit is set to 1.
*/
#define LEDC_DUTY_START_CH1 (BIT(31))
#define LEDC_DUTY_START_CH1_M (LEDC_DUTY_START_CH1_V << LEDC_DUTY_START_CH1_S)
#define LEDC_DUTY_START_CH1_V 0x00000001U
#define LEDC_DUTY_START_CH1_S 31
/** LEDC_CH1_DUTY_R_REG register
* Current duty cycle for channel 1
*/
#define LEDC_CH1_DUTY_R_REG (DR_REG_LEDC_BASE + 0x24)
/** LEDC_DUTY_CH1_R : RO; bitpos: [24:0]; default: 0;
* This register stores the current duty of output signal on channel 1.
*/
#define LEDC_DUTY_CH1_R 0x01FFFFFFU
#define LEDC_DUTY_CH1_R_M (LEDC_DUTY_CH1_R_V << LEDC_DUTY_CH1_R_S)
#define LEDC_DUTY_CH1_R_V 0x01FFFFFFU
#define LEDC_DUTY_CH1_R_S 0
/** LEDC_CH2_CONF0_REG register
* Configuration register 0 for channel 2
*/
#define LEDC_CH2_CONF0_REG (DR_REG_LEDC_BASE + 0x28)
/** LEDC_TIMER_SEL_CH2 : R/W; bitpos: [1:0]; default: 0;
* This field is used to select one of timers for channel 2.
*
* 0: select timer0, 1: select timer1, 2: select timer2, 3: select timer3
*/
#define LEDC_TIMER_SEL_CH2 0x00000003U
#define LEDC_TIMER_SEL_CH2_M (LEDC_TIMER_SEL_CH2_V << LEDC_TIMER_SEL_CH2_S)
#define LEDC_TIMER_SEL_CH2_V 0x00000003U
#define LEDC_TIMER_SEL_CH2_S 0
/** LEDC_SIG_OUT_EN_CH2 : R/W; bitpos: [2]; default: 0;
* Set this bit to enable signal output on channel 2.
*/
#define LEDC_SIG_OUT_EN_CH2 (BIT(2))
#define LEDC_SIG_OUT_EN_CH2_M (LEDC_SIG_OUT_EN_CH2_V << LEDC_SIG_OUT_EN_CH2_S)
#define LEDC_SIG_OUT_EN_CH2_V 0x00000001U
#define LEDC_SIG_OUT_EN_CH2_S 2
/** LEDC_IDLE_LV_CH2 : R/W; bitpos: [3]; default: 0;
* This bit is used to control the output value when channel 2 is inactive (when
* LEDC_SIG_OUT_EN_CH2 is 0).
*/
#define LEDC_IDLE_LV_CH2 (BIT(3))
#define LEDC_IDLE_LV_CH2_M (LEDC_IDLE_LV_CH2_V << LEDC_IDLE_LV_CH2_S)
#define LEDC_IDLE_LV_CH2_V 0x00000001U
#define LEDC_IDLE_LV_CH2_S 3
/** LEDC_PARA_UP_CH2 : WT; bitpos: [4]; default: 0;
* This bit is used to update LEDC_HPOINT_CH2, LEDC_DUTY_START_CH2,
* LEDC_SIG_OUT_EN_CH2, LEDC_TIMER_SEL_CH2, LEDC_DUTY_NUM_CH2, LEDC_DUTY_CYCLE_CH2,
* LEDC_DUTY_SCALE_CH2, LEDC_DUTY_INC_CH2, and LEDC_OVF_CNT_EN_CH2 fields for channel
* 2, and will be automatically cleared by hardware.
*/
#define LEDC_PARA_UP_CH2 (BIT(4))
#define LEDC_PARA_UP_CH2_M (LEDC_PARA_UP_CH2_V << LEDC_PARA_UP_CH2_S)
#define LEDC_PARA_UP_CH2_V 0x00000001U
#define LEDC_PARA_UP_CH2_S 4
/** LEDC_OVF_NUM_CH2 : R/W; bitpos: [14:5]; default: 0;
* This register is used to configure the maximum times of overflow minus 1.
*
* The LEDC_OVF_CNT_CH2_INT interrupt will be triggered when channel 2 overflows for
* (LEDC_OVF_NUM_CH2 + 1) times.
*/
#define LEDC_OVF_NUM_CH2 0x000003FFU
#define LEDC_OVF_NUM_CH2_M (LEDC_OVF_NUM_CH2_V << LEDC_OVF_NUM_CH2_S)
#define LEDC_OVF_NUM_CH2_V 0x000003FFU
#define LEDC_OVF_NUM_CH2_S 5
/** LEDC_OVF_CNT_EN_CH2 : R/W; bitpos: [15]; default: 0;
* This bit is used to enable the ovf_cnt of channel 2.
*/
#define LEDC_OVF_CNT_EN_CH2 (BIT(15))
#define LEDC_OVF_CNT_EN_CH2_M (LEDC_OVF_CNT_EN_CH2_V << LEDC_OVF_CNT_EN_CH2_S)
#define LEDC_OVF_CNT_EN_CH2_V 0x00000001U
#define LEDC_OVF_CNT_EN_CH2_S 15
/** LEDC_OVF_CNT_RESET_CH2 : WT; bitpos: [16]; default: 0;
* Set this bit to reset the ovf_cnt of channel 2.
*/
#define LEDC_OVF_CNT_RESET_CH2 (BIT(16))
#define LEDC_OVF_CNT_RESET_CH2_M (LEDC_OVF_CNT_RESET_CH2_V << LEDC_OVF_CNT_RESET_CH2_S)
#define LEDC_OVF_CNT_RESET_CH2_V 0x00000001U
#define LEDC_OVF_CNT_RESET_CH2_S 16
/** LEDC_CH2_HPOINT_REG register
* High point register for channel 2
*/
#define LEDC_CH2_HPOINT_REG (DR_REG_LEDC_BASE + 0x2c)
/** LEDC_HPOINT_CH2 : R/W; bitpos: [19:0]; default: 0;
* The output value changes to high when the selected timers has reached the value
* specified by this register.
*/
#define LEDC_HPOINT_CH2 0x000FFFFFU
#define LEDC_HPOINT_CH2_M (LEDC_HPOINT_CH2_V << LEDC_HPOINT_CH2_S)
#define LEDC_HPOINT_CH2_V 0x000FFFFFU
#define LEDC_HPOINT_CH2_S 0
/** LEDC_CH2_DUTY_REG register
* Initial duty cycle for channel 2
*/
#define LEDC_CH2_DUTY_REG (DR_REG_LEDC_BASE + 0x30)
/** LEDC_DUTY_CH2 : R/W; bitpos: [24:0]; default: 0;
* This register is used to change the output duty by controlling the Lpoint.
*
* The output value turns to low when the selected timers has reached the Lpoint.
*/
#define LEDC_DUTY_CH2 0x01FFFFFFU
#define LEDC_DUTY_CH2_M (LEDC_DUTY_CH2_V << LEDC_DUTY_CH2_S)
#define LEDC_DUTY_CH2_V 0x01FFFFFFU
#define LEDC_DUTY_CH2_S 0
/** LEDC_CH2_CONF1_REG register
* Configuration register 1 for channel 2
*/
#define LEDC_CH2_CONF1_REG (DR_REG_LEDC_BASE + 0x34)
/** LEDC_DUTY_START_CH2 : R/W/SC; bitpos: [31]; default: 0;
* Other configured fields in LEDC_CH2_CONF1_REG will start to take effect when this
* bit is set to 1.
*/
#define LEDC_DUTY_START_CH2 (BIT(31))
#define LEDC_DUTY_START_CH2_M (LEDC_DUTY_START_CH2_V << LEDC_DUTY_START_CH2_S)
#define LEDC_DUTY_START_CH2_V 0x00000001U
#define LEDC_DUTY_START_CH2_S 31
/** LEDC_CH2_DUTY_R_REG register
* Current duty cycle for channel 2
*/
#define LEDC_CH2_DUTY_R_REG (DR_REG_LEDC_BASE + 0x38)
/** LEDC_DUTY_CH2_R : RO; bitpos: [24:0]; default: 0;
* This register stores the current duty of output signal on channel 2.
*/
#define LEDC_DUTY_CH2_R 0x01FFFFFFU
#define LEDC_DUTY_CH2_R_M (LEDC_DUTY_CH2_R_V << LEDC_DUTY_CH2_R_S)
#define LEDC_DUTY_CH2_R_V 0x01FFFFFFU
#define LEDC_DUTY_CH2_R_S 0
/** LEDC_CH3_CONF0_REG register
* Configuration register 0 for channel 3
*/
#define LEDC_CH3_CONF0_REG (DR_REG_LEDC_BASE + 0x3c)
/** LEDC_TIMER_SEL_CH3 : R/W; bitpos: [1:0]; default: 0;
* This field is used to select one of timers for channel 3.
*
* 0: select timer0, 1: select timer1, 2: select timer2, 3: select timer3
*/
#define LEDC_TIMER_SEL_CH3 0x00000003U
#define LEDC_TIMER_SEL_CH3_M (LEDC_TIMER_SEL_CH3_V << LEDC_TIMER_SEL_CH3_S)
#define LEDC_TIMER_SEL_CH3_V 0x00000003U
#define LEDC_TIMER_SEL_CH3_S 0
/** LEDC_SIG_OUT_EN_CH3 : R/W; bitpos: [2]; default: 0;
* Set this bit to enable signal output on channel 3.
*/
#define LEDC_SIG_OUT_EN_CH3 (BIT(2))
#define LEDC_SIG_OUT_EN_CH3_M (LEDC_SIG_OUT_EN_CH3_V << LEDC_SIG_OUT_EN_CH3_S)
#define LEDC_SIG_OUT_EN_CH3_V 0x00000001U
#define LEDC_SIG_OUT_EN_CH3_S 2
/** LEDC_IDLE_LV_CH3 : R/W; bitpos: [3]; default: 0;
* This bit is used to control the output value when channel 3 is inactive (when
* LEDC_SIG_OUT_EN_CH3 is 0).
*/
#define LEDC_IDLE_LV_CH3 (BIT(3))
#define LEDC_IDLE_LV_CH3_M (LEDC_IDLE_LV_CH3_V << LEDC_IDLE_LV_CH3_S)
#define LEDC_IDLE_LV_CH3_V 0x00000001U
#define LEDC_IDLE_LV_CH3_S 3
/** LEDC_PARA_UP_CH3 : WT; bitpos: [4]; default: 0;
* This bit is used to update LEDC_HPOINT_CH3, LEDC_DUTY_START_CH3,
* LEDC_SIG_OUT_EN_CH3, LEDC_TIMER_SEL_CH3, LEDC_DUTY_NUM_CH3, LEDC_DUTY_CYCLE_CH3,
* LEDC_DUTY_SCALE_CH3, LEDC_DUTY_INC_CH3, and LEDC_OVF_CNT_EN_CH3 fields for channel
* 3, and will be automatically cleared by hardware.
*/
#define LEDC_PARA_UP_CH3 (BIT(4))
#define LEDC_PARA_UP_CH3_M (LEDC_PARA_UP_CH3_V << LEDC_PARA_UP_CH3_S)
#define LEDC_PARA_UP_CH3_V 0x00000001U
#define LEDC_PARA_UP_CH3_S 4
/** LEDC_OVF_NUM_CH3 : R/W; bitpos: [14:5]; default: 0;
* This register is used to configure the maximum times of overflow minus 1.
*
* The LEDC_OVF_CNT_CH3_INT interrupt will be triggered when channel 3 overflows for
* (LEDC_OVF_NUM_CH3 + 1) times.
*/
#define LEDC_OVF_NUM_CH3 0x000003FFU
#define LEDC_OVF_NUM_CH3_M (LEDC_OVF_NUM_CH3_V << LEDC_OVF_NUM_CH3_S)
#define LEDC_OVF_NUM_CH3_V 0x000003FFU
#define LEDC_OVF_NUM_CH3_S 5
/** LEDC_OVF_CNT_EN_CH3 : R/W; bitpos: [15]; default: 0;
* This bit is used to enable the ovf_cnt of channel 3.
*/
#define LEDC_OVF_CNT_EN_CH3 (BIT(15))
#define LEDC_OVF_CNT_EN_CH3_M (LEDC_OVF_CNT_EN_CH3_V << LEDC_OVF_CNT_EN_CH3_S)
#define LEDC_OVF_CNT_EN_CH3_V 0x00000001U
#define LEDC_OVF_CNT_EN_CH3_S 15
/** LEDC_OVF_CNT_RESET_CH3 : WT; bitpos: [16]; default: 0;
* Set this bit to reset the ovf_cnt of channel 3.
*/
#define LEDC_OVF_CNT_RESET_CH3 (BIT(16))
#define LEDC_OVF_CNT_RESET_CH3_M (LEDC_OVF_CNT_RESET_CH3_V << LEDC_OVF_CNT_RESET_CH3_S)
#define LEDC_OVF_CNT_RESET_CH3_V 0x00000001U
#define LEDC_OVF_CNT_RESET_CH3_S 16
/** LEDC_CH3_HPOINT_REG register
* High point register for channel 3
*/
#define LEDC_CH3_HPOINT_REG (DR_REG_LEDC_BASE + 0x40)
/** LEDC_HPOINT_CH3 : R/W; bitpos: [19:0]; default: 0;
* The output value changes to high when the selected timers has reached the value
* specified by this register.
*/
#define LEDC_HPOINT_CH3 0x000FFFFFU
#define LEDC_HPOINT_CH3_M (LEDC_HPOINT_CH3_V << LEDC_HPOINT_CH3_S)
#define LEDC_HPOINT_CH3_V 0x000FFFFFU
#define LEDC_HPOINT_CH3_S 0
/** LEDC_CH3_DUTY_REG register
* Initial duty cycle for channel 3
*/
#define LEDC_CH3_DUTY_REG (DR_REG_LEDC_BASE + 0x44)
/** LEDC_DUTY_CH3 : R/W; bitpos: [24:0]; default: 0;
* This register is used to change the output duty by controlling the Lpoint.
*
* The output value turns to low when the selected timers has reached the Lpoint.
*/
#define LEDC_DUTY_CH3 0x01FFFFFFU
#define LEDC_DUTY_CH3_M (LEDC_DUTY_CH3_V << LEDC_DUTY_CH3_S)
#define LEDC_DUTY_CH3_V 0x01FFFFFFU
#define LEDC_DUTY_CH3_S 0
/** LEDC_CH3_CONF1_REG register
* Configuration register 1 for channel 3
*/
#define LEDC_CH3_CONF1_REG (DR_REG_LEDC_BASE + 0x48)
/** LEDC_DUTY_START_CH3 : R/W/SC; bitpos: [31]; default: 0;
* Other configured fields in LEDC_CH3_CONF1_REG will start to take effect when this
* bit is set to 1.
*/
#define LEDC_DUTY_START_CH3 (BIT(31))
#define LEDC_DUTY_START_CH3_M (LEDC_DUTY_START_CH3_V << LEDC_DUTY_START_CH3_S)
#define LEDC_DUTY_START_CH3_V 0x00000001U
#define LEDC_DUTY_START_CH3_S 31
/** LEDC_CH3_DUTY_R_REG register
* Current duty cycle for channel 3
*/
#define LEDC_CH3_DUTY_R_REG (DR_REG_LEDC_BASE + 0x4c)
/** LEDC_DUTY_CH3_R : RO; bitpos: [24:0]; default: 0;
* This register stores the current duty of output signal on channel 3.
*/
#define LEDC_DUTY_CH3_R 0x01FFFFFFU
#define LEDC_DUTY_CH3_R_M (LEDC_DUTY_CH3_R_V << LEDC_DUTY_CH3_R_S)
#define LEDC_DUTY_CH3_R_V 0x01FFFFFFU
#define LEDC_DUTY_CH3_R_S 0
/** LEDC_CH4_CONF0_REG register
* Configuration register 0 for channel 4
*/
#define LEDC_CH4_CONF0_REG (DR_REG_LEDC_BASE + 0x50)
/** LEDC_TIMER_SEL_CH4 : R/W; bitpos: [1:0]; default: 0;
* This field is used to select one of timers for channel 4.
*
* 0: select timer0, 1: select timer1, 2: select timer2, 3: select timer3
*/
#define LEDC_TIMER_SEL_CH4 0x00000003U
#define LEDC_TIMER_SEL_CH4_M (LEDC_TIMER_SEL_CH4_V << LEDC_TIMER_SEL_CH4_S)
#define LEDC_TIMER_SEL_CH4_V 0x00000003U
#define LEDC_TIMER_SEL_CH4_S 0
/** LEDC_SIG_OUT_EN_CH4 : R/W; bitpos: [2]; default: 0;
* Set this bit to enable signal output on channel 4.
*/
#define LEDC_SIG_OUT_EN_CH4 (BIT(2))
#define LEDC_SIG_OUT_EN_CH4_M (LEDC_SIG_OUT_EN_CH4_V << LEDC_SIG_OUT_EN_CH4_S)
#define LEDC_SIG_OUT_EN_CH4_V 0x00000001U
#define LEDC_SIG_OUT_EN_CH4_S 2
/** LEDC_IDLE_LV_CH4 : R/W; bitpos: [3]; default: 0;
* This bit is used to control the output value when channel 4 is inactive (when
* LEDC_SIG_OUT_EN_CH4 is 0).
*/
#define LEDC_IDLE_LV_CH4 (BIT(3))
#define LEDC_IDLE_LV_CH4_M (LEDC_IDLE_LV_CH4_V << LEDC_IDLE_LV_CH4_S)
#define LEDC_IDLE_LV_CH4_V 0x00000001U
#define LEDC_IDLE_LV_CH4_S 3
/** LEDC_PARA_UP_CH4 : WT; bitpos: [4]; default: 0;
* This bit is used to update LEDC_HPOINT_CH4, LEDC_DUTY_START_CH4,
* LEDC_SIG_OUT_EN_CH4, LEDC_TIMER_SEL_CH4, LEDC_DUTY_NUM_CH4, LEDC_DUTY_CYCLE_CH4,
* LEDC_DUTY_SCALE_CH4, LEDC_DUTY_INC_CH4, and LEDC_OVF_CNT_EN_CH4 fields for channel
* 4, and will be automatically cleared by hardware.
*/
#define LEDC_PARA_UP_CH4 (BIT(4))
#define LEDC_PARA_UP_CH4_M (LEDC_PARA_UP_CH4_V << LEDC_PARA_UP_CH4_S)
#define LEDC_PARA_UP_CH4_V 0x00000001U
#define LEDC_PARA_UP_CH4_S 4
/** LEDC_OVF_NUM_CH4 : R/W; bitpos: [14:5]; default: 0;
* This register is used to configure the maximum times of overflow minus 1.
*
* The LEDC_OVF_CNT_CH4_INT interrupt will be triggered when channel 4 overflows for
* (LEDC_OVF_NUM_CH4 + 1) times.
*/
#define LEDC_OVF_NUM_CH4 0x000003FFU
#define LEDC_OVF_NUM_CH4_M (LEDC_OVF_NUM_CH4_V << LEDC_OVF_NUM_CH4_S)
#define LEDC_OVF_NUM_CH4_V 0x000003FFU
#define LEDC_OVF_NUM_CH4_S 5
/** LEDC_OVF_CNT_EN_CH4 : R/W; bitpos: [15]; default: 0;
* This bit is used to enable the ovf_cnt of channel 4.
*/
#define LEDC_OVF_CNT_EN_CH4 (BIT(15))
#define LEDC_OVF_CNT_EN_CH4_M (LEDC_OVF_CNT_EN_CH4_V << LEDC_OVF_CNT_EN_CH4_S)
#define LEDC_OVF_CNT_EN_CH4_V 0x00000001U
#define LEDC_OVF_CNT_EN_CH4_S 15
/** LEDC_OVF_CNT_RESET_CH4 : WT; bitpos: [16]; default: 0;
* Set this bit to reset the ovf_cnt of channel 4.
*/
#define LEDC_OVF_CNT_RESET_CH4 (BIT(16))
#define LEDC_OVF_CNT_RESET_CH4_M (LEDC_OVF_CNT_RESET_CH4_V << LEDC_OVF_CNT_RESET_CH4_S)
#define LEDC_OVF_CNT_RESET_CH4_V 0x00000001U
#define LEDC_OVF_CNT_RESET_CH4_S 16
/** LEDC_CH4_HPOINT_REG register
* High point register for channel 4
*/
#define LEDC_CH4_HPOINT_REG (DR_REG_LEDC_BASE + 0x54)
/** LEDC_HPOINT_CH4 : R/W; bitpos: [19:0]; default: 0;
* The output value changes to high when the selected timers has reached the value
* specified by this register.
*/
#define LEDC_HPOINT_CH4 0x000FFFFFU
#define LEDC_HPOINT_CH4_M (LEDC_HPOINT_CH4_V << LEDC_HPOINT_CH4_S)
#define LEDC_HPOINT_CH4_V 0x000FFFFFU
#define LEDC_HPOINT_CH4_S 0
/** LEDC_CH4_DUTY_REG register
* Initial duty cycle for channel 4
*/
#define LEDC_CH4_DUTY_REG (DR_REG_LEDC_BASE + 0x58)
/** LEDC_DUTY_CH4 : R/W; bitpos: [24:0]; default: 0;
* This register is used to change the output duty by controlling the Lpoint.
*
* The output value turns to low when the selected timers has reached the Lpoint.
*/
#define LEDC_DUTY_CH4 0x01FFFFFFU
#define LEDC_DUTY_CH4_M (LEDC_DUTY_CH4_V << LEDC_DUTY_CH4_S)
#define LEDC_DUTY_CH4_V 0x01FFFFFFU
#define LEDC_DUTY_CH4_S 0
/** LEDC_CH4_CONF1_REG register
* Configuration register 1 for channel 4
*/
#define LEDC_CH4_CONF1_REG (DR_REG_LEDC_BASE + 0x5c)
/** LEDC_DUTY_START_CH4 : R/W/SC; bitpos: [31]; default: 0;
* Other configured fields in LEDC_CH4_CONF1_REG will start to take effect when this
* bit is set to 1.
*/
#define LEDC_DUTY_START_CH4 (BIT(31))
#define LEDC_DUTY_START_CH4_M (LEDC_DUTY_START_CH4_V << LEDC_DUTY_START_CH4_S)
#define LEDC_DUTY_START_CH4_V 0x00000001U
#define LEDC_DUTY_START_CH4_S 31
/** LEDC_CH4_DUTY_R_REG register
* Current duty cycle for channel 4
*/
#define LEDC_CH4_DUTY_R_REG (DR_REG_LEDC_BASE + 0x60)
/** LEDC_DUTY_CH4_R : RO; bitpos: [24:0]; default: 0;
* This register stores the current duty of output signal on channel 4.
*/
#define LEDC_DUTY_CH4_R 0x01FFFFFFU
#define LEDC_DUTY_CH4_R_M (LEDC_DUTY_CH4_R_V << LEDC_DUTY_CH4_R_S)
#define LEDC_DUTY_CH4_R_V 0x01FFFFFFU
#define LEDC_DUTY_CH4_R_S 0
/** LEDC_CH5_CONF0_REG register
* Configuration register 0 for channel 5
*/
#define LEDC_CH5_CONF0_REG (DR_REG_LEDC_BASE + 0x64)
/** LEDC_TIMER_SEL_CH5 : R/W; bitpos: [1:0]; default: 0;
* This field is used to select one of timers for channel 5.
*
* 0: select timer0, 1: select timer1, 2: select timer2, 3: select timer3
*/
#define LEDC_TIMER_SEL_CH5 0x00000003U
#define LEDC_TIMER_SEL_CH5_M (LEDC_TIMER_SEL_CH5_V << LEDC_TIMER_SEL_CH5_S)
#define LEDC_TIMER_SEL_CH5_V 0x00000003U
#define LEDC_TIMER_SEL_CH5_S 0
/** LEDC_SIG_OUT_EN_CH5 : R/W; bitpos: [2]; default: 0;
* Set this bit to enable signal output on channel 5.
*/
#define LEDC_SIG_OUT_EN_CH5 (BIT(2))
#define LEDC_SIG_OUT_EN_CH5_M (LEDC_SIG_OUT_EN_CH5_V << LEDC_SIG_OUT_EN_CH5_S)
#define LEDC_SIG_OUT_EN_CH5_V 0x00000001U
#define LEDC_SIG_OUT_EN_CH5_S 2
/** LEDC_IDLE_LV_CH5 : R/W; bitpos: [3]; default: 0;
* This bit is used to control the output value when channel 5 is inactive (when
* LEDC_SIG_OUT_EN_CH5 is 0).
*/
#define LEDC_IDLE_LV_CH5 (BIT(3))
#define LEDC_IDLE_LV_CH5_M (LEDC_IDLE_LV_CH5_V << LEDC_IDLE_LV_CH5_S)
#define LEDC_IDLE_LV_CH5_V 0x00000001U
#define LEDC_IDLE_LV_CH5_S 3
/** LEDC_PARA_UP_CH5 : WT; bitpos: [4]; default: 0;
* This bit is used to update LEDC_HPOINT_CH5, LEDC_DUTY_START_CH5,
* LEDC_SIG_OUT_EN_CH5, LEDC_TIMER_SEL_CH5, LEDC_DUTY_NUM_CH5, LEDC_DUTY_CYCLE_CH5,
* LEDC_DUTY_SCALE_CH5, LEDC_DUTY_INC_CH5, and LEDC_OVF_CNT_EN_CH5 fields for channel
* 5, and will be automatically cleared by hardware.
*/
#define LEDC_PARA_UP_CH5 (BIT(4))
#define LEDC_PARA_UP_CH5_M (LEDC_PARA_UP_CH5_V << LEDC_PARA_UP_CH5_S)
#define LEDC_PARA_UP_CH5_V 0x00000001U
#define LEDC_PARA_UP_CH5_S 4
/** LEDC_OVF_NUM_CH5 : R/W; bitpos: [14:5]; default: 0;
* This register is used to configure the maximum times of overflow minus 1.
*
* The LEDC_OVF_CNT_CH5_INT interrupt will be triggered when channel 5 overflows for
* (LEDC_OVF_NUM_CH5 + 1) times.
*/
#define LEDC_OVF_NUM_CH5 0x000003FFU
#define LEDC_OVF_NUM_CH5_M (LEDC_OVF_NUM_CH5_V << LEDC_OVF_NUM_CH5_S)
#define LEDC_OVF_NUM_CH5_V 0x000003FFU
#define LEDC_OVF_NUM_CH5_S 5
/** LEDC_OVF_CNT_EN_CH5 : R/W; bitpos: [15]; default: 0;
* This bit is used to enable the ovf_cnt of channel 5.
*/
#define LEDC_OVF_CNT_EN_CH5 (BIT(15))
#define LEDC_OVF_CNT_EN_CH5_M (LEDC_OVF_CNT_EN_CH5_V << LEDC_OVF_CNT_EN_CH5_S)
#define LEDC_OVF_CNT_EN_CH5_V 0x00000001U
#define LEDC_OVF_CNT_EN_CH5_S 15
/** LEDC_OVF_CNT_RESET_CH5 : WT; bitpos: [16]; default: 0;
* Set this bit to reset the ovf_cnt of channel 5.
*/
#define LEDC_OVF_CNT_RESET_CH5 (BIT(16))
#define LEDC_OVF_CNT_RESET_CH5_M (LEDC_OVF_CNT_RESET_CH5_V << LEDC_OVF_CNT_RESET_CH5_S)
#define LEDC_OVF_CNT_RESET_CH5_V 0x00000001U
#define LEDC_OVF_CNT_RESET_CH5_S 16
/** LEDC_CH5_HPOINT_REG register
* High point register for channel 5
*/
#define LEDC_CH5_HPOINT_REG (DR_REG_LEDC_BASE + 0x68)
/** LEDC_HPOINT_CH5 : R/W; bitpos: [19:0]; default: 0;
* The output value changes to high when the selected timers has reached the value
* specified by this register.
*/
#define LEDC_HPOINT_CH5 0x000FFFFFU
#define LEDC_HPOINT_CH5_M (LEDC_HPOINT_CH5_V << LEDC_HPOINT_CH5_S)
#define LEDC_HPOINT_CH5_V 0x000FFFFFU
#define LEDC_HPOINT_CH5_S 0
/** LEDC_CH5_DUTY_REG register
* Initial duty cycle for channel 5
*/
#define LEDC_CH5_DUTY_REG (DR_REG_LEDC_BASE + 0x6c)
/** LEDC_DUTY_CH5 : R/W; bitpos: [24:0]; default: 0;
* This register is used to change the output duty by controlling the Lpoint.
*
* The output value turns to low when the selected timers has reached the Lpoint.
*/
#define LEDC_DUTY_CH5 0x01FFFFFFU
#define LEDC_DUTY_CH5_M (LEDC_DUTY_CH5_V << LEDC_DUTY_CH5_S)
#define LEDC_DUTY_CH5_V 0x01FFFFFFU
#define LEDC_DUTY_CH5_S 0
/** LEDC_CH5_CONF1_REG register
* Configuration register 1 for channel 5
*/
#define LEDC_CH5_CONF1_REG (DR_REG_LEDC_BASE + 0x70)
/** LEDC_DUTY_START_CH5 : R/W/SC; bitpos: [31]; default: 0;
* Other configured fields in LEDC_CH5_CONF1_REG will start to take effect when this
* bit is set to 1.
*/
#define LEDC_DUTY_START_CH5 (BIT(31))
#define LEDC_DUTY_START_CH5_M (LEDC_DUTY_START_CH5_V << LEDC_DUTY_START_CH5_S)
#define LEDC_DUTY_START_CH5_V 0x00000001U
#define LEDC_DUTY_START_CH5_S 31
/** LEDC_CH5_DUTY_R_REG register
* Current duty cycle for channel 5
*/
#define LEDC_CH5_DUTY_R_REG (DR_REG_LEDC_BASE + 0x74)
/** LEDC_DUTY_CH5_R : RO; bitpos: [24:0]; default: 0;
* This register stores the current duty of output signal on channel 5.
*/
#define LEDC_DUTY_CH5_R 0x01FFFFFFU
#define LEDC_DUTY_CH5_R_M (LEDC_DUTY_CH5_R_V << LEDC_DUTY_CH5_R_S)
#define LEDC_DUTY_CH5_R_V 0x01FFFFFFU
#define LEDC_DUTY_CH5_R_S 0
/** LEDC_TIMER0_CONF_REG register
* Timer 0 configuration
*/
#define LEDC_TIMER0_CONF_REG (DR_REG_LEDC_BASE + 0xa0)
/** LEDC_TIMER0_DUTY_RES : R/W; bitpos: [4:0]; default: 0;
* This register is used to control the range of the counter in timer 0.
*/
#define LEDC_TIMER0_DUTY_RES 0x0000001FU
#define LEDC_TIMER0_DUTY_RES_M (LEDC_TIMER0_DUTY_RES_V << LEDC_TIMER0_DUTY_RES_S)
#define LEDC_TIMER0_DUTY_RES_V 0x0000001FU
#define LEDC_TIMER0_DUTY_RES_S 0
/** LEDC_CLK_DIV_TIMER0 : R/W; bitpos: [22:5]; default: 0;
* This register is used to configure the divisor for the divider in timer 0.
*
* The least significant eight bits represent the fractional part.
*/
#define LEDC_CLK_DIV_TIMER0 0x0003FFFFU
#define LEDC_CLK_DIV_TIMER0_M (LEDC_CLK_DIV_TIMER0_V << LEDC_CLK_DIV_TIMER0_S)
#define LEDC_CLK_DIV_TIMER0_V 0x0003FFFFU
#define LEDC_CLK_DIV_TIMER0_S 5
/** LEDC_TIMER0_PAUSE : R/W; bitpos: [23]; default: 0;
* This bit is used to suspend the counter in timer 0.
*/
#define LEDC_TIMER0_PAUSE (BIT(23))
#define LEDC_TIMER0_PAUSE_M (LEDC_TIMER0_PAUSE_V << LEDC_TIMER0_PAUSE_S)
#define LEDC_TIMER0_PAUSE_V 0x00000001U
#define LEDC_TIMER0_PAUSE_S 23
/** LEDC_TIMER0_RST : R/W; bitpos: [24]; default: 1;
* This bit is used to reset timer 0. The counter will show 0 after reset.
*/
#define LEDC_TIMER0_RST (BIT(24))
#define LEDC_TIMER0_RST_M (LEDC_TIMER0_RST_V << LEDC_TIMER0_RST_S)
#define LEDC_TIMER0_RST_V 0x00000001U
#define LEDC_TIMER0_RST_S 24
/** LEDC_TICK_SEL_TIMER0 : R/W; bitpos: [25]; default: 0;
* This bit is used to select clock for timer 0. When this bit is set to 1
* LEDC_APB_CLK_SEL[1:0] should be 1, otherwise the timer clock may be not accurate.
*
* 1'h0: SLOW_CLK 1'h1: REF_TICK
*/
#define LEDC_TICK_SEL_TIMER0 (BIT(25))
#define LEDC_TICK_SEL_TIMER0_M (LEDC_TICK_SEL_TIMER0_V << LEDC_TICK_SEL_TIMER0_S)
#define LEDC_TICK_SEL_TIMER0_V 0x00000001U
#define LEDC_TICK_SEL_TIMER0_S 25
/** LEDC_TIMER0_PARA_UP : WT; bitpos: [26]; default: 0;
* Set this bit to update LEDC_CLK_DIV_TIMER0 and LEDC_TIMER0_DUTY_RES.
*/
#define LEDC_TIMER0_PARA_UP (BIT(26))
#define LEDC_TIMER0_PARA_UP_M (LEDC_TIMER0_PARA_UP_V << LEDC_TIMER0_PARA_UP_S)
#define LEDC_TIMER0_PARA_UP_V 0x00000001U
#define LEDC_TIMER0_PARA_UP_S 26
/** LEDC_TIMER0_VALUE_REG register
* Timer 0 current counter value
*/
#define LEDC_TIMER0_VALUE_REG (DR_REG_LEDC_BASE + 0xa4)
/** LEDC_TIMER0_CNT : RO; bitpos: [19:0]; default: 0;
* This register stores the current counter value of timer 0.
*/
#define LEDC_TIMER0_CNT 0x000FFFFFU
#define LEDC_TIMER0_CNT_M (LEDC_TIMER0_CNT_V << LEDC_TIMER0_CNT_S)
#define LEDC_TIMER0_CNT_V 0x000FFFFFU
#define LEDC_TIMER0_CNT_S 0
/** LEDC_TIMER1_CONF_REG register
* Timer 1 configuration
*/
#define LEDC_TIMER1_CONF_REG (DR_REG_LEDC_BASE + 0xa8)
/** LEDC_TIMER1_DUTY_RES : R/W; bitpos: [4:0]; default: 0;
* This register is used to control the range of the counter in timer 1.
*/
#define LEDC_TIMER1_DUTY_RES 0x0000001FU
#define LEDC_TIMER1_DUTY_RES_M (LEDC_TIMER1_DUTY_RES_V << LEDC_TIMER1_DUTY_RES_S)
#define LEDC_TIMER1_DUTY_RES_V 0x0000001FU
#define LEDC_TIMER1_DUTY_RES_S 0
/** LEDC_CLK_DIV_TIMER1 : R/W; bitpos: [22:5]; default: 0;
* This register is used to configure the divisor for the divider in timer 1.
*
* The least significant eight bits represent the fractional part.
*/
#define LEDC_CLK_DIV_TIMER1 0x0003FFFFU
#define LEDC_CLK_DIV_TIMER1_M (LEDC_CLK_DIV_TIMER1_V << LEDC_CLK_DIV_TIMER1_S)
#define LEDC_CLK_DIV_TIMER1_V 0x0003FFFFU
#define LEDC_CLK_DIV_TIMER1_S 5
/** LEDC_TIMER1_PAUSE : R/W; bitpos: [23]; default: 0;
* This bit is used to suspend the counter in timer 1.
*/
#define LEDC_TIMER1_PAUSE (BIT(23))
#define LEDC_TIMER1_PAUSE_M (LEDC_TIMER1_PAUSE_V << LEDC_TIMER1_PAUSE_S)
#define LEDC_TIMER1_PAUSE_V 0x00000001U
#define LEDC_TIMER1_PAUSE_S 23
/** LEDC_TIMER1_RST : R/W; bitpos: [24]; default: 1;
* This bit is used to reset timer 1. The counter will show 0 after reset.
*/
#define LEDC_TIMER1_RST (BIT(24))
#define LEDC_TIMER1_RST_M (LEDC_TIMER1_RST_V << LEDC_TIMER1_RST_S)
#define LEDC_TIMER1_RST_V 0x00000001U
#define LEDC_TIMER1_RST_S 24
/** LEDC_TICK_SEL_TIMER1 : R/W; bitpos: [25]; default: 0;
* This bit is used to select clock for timer 1. When this bit is set to 1
* LEDC_APB_CLK_SEL[1:0] should be 1, otherwise the timer clock may be not accurate.
*
* 1'h0: SLOW_CLK 1'h1: REF_TICK
*/
#define LEDC_TICK_SEL_TIMER1 (BIT(25))
#define LEDC_TICK_SEL_TIMER1_M (LEDC_TICK_SEL_TIMER1_V << LEDC_TICK_SEL_TIMER1_S)
#define LEDC_TICK_SEL_TIMER1_V 0x00000001U
#define LEDC_TICK_SEL_TIMER1_S 25
/** LEDC_TIMER1_PARA_UP : WT; bitpos: [26]; default: 0;
* Set this bit to update LEDC_CLK_DIV_TIMER1 and LEDC_TIMER1_DUTY_RES.
*/
#define LEDC_TIMER1_PARA_UP (BIT(26))
#define LEDC_TIMER1_PARA_UP_M (LEDC_TIMER1_PARA_UP_V << LEDC_TIMER1_PARA_UP_S)
#define LEDC_TIMER1_PARA_UP_V 0x00000001U
#define LEDC_TIMER1_PARA_UP_S 26
/** LEDC_TIMER1_VALUE_REG register
* Timer 1 current counter value
*/
#define LEDC_TIMER1_VALUE_REG (DR_REG_LEDC_BASE + 0xac)
/** LEDC_TIMER1_CNT : RO; bitpos: [19:0]; default: 0;
* This register stores the current counter value of timer 1.
*/
#define LEDC_TIMER1_CNT 0x000FFFFFU
#define LEDC_TIMER1_CNT_M (LEDC_TIMER1_CNT_V << LEDC_TIMER1_CNT_S)
#define LEDC_TIMER1_CNT_V 0x000FFFFFU
#define LEDC_TIMER1_CNT_S 0
/** LEDC_TIMER2_CONF_REG register
* Timer 2 configuration
*/
#define LEDC_TIMER2_CONF_REG (DR_REG_LEDC_BASE + 0xb0)
/** LEDC_TIMER2_DUTY_RES : R/W; bitpos: [4:0]; default: 0;
* This register is used to control the range of the counter in timer 2.
*/
#define LEDC_TIMER2_DUTY_RES 0x0000001FU
#define LEDC_TIMER2_DUTY_RES_M (LEDC_TIMER2_DUTY_RES_V << LEDC_TIMER2_DUTY_RES_S)
#define LEDC_TIMER2_DUTY_RES_V 0x0000001FU
#define LEDC_TIMER2_DUTY_RES_S 0
/** LEDC_CLK_DIV_TIMER2 : R/W; bitpos: [22:5]; default: 0;
* This register is used to configure the divisor for the divider in timer 2.
*
* The least significant eight bits represent the fractional part.
*/
#define LEDC_CLK_DIV_TIMER2 0x0003FFFFU
#define LEDC_CLK_DIV_TIMER2_M (LEDC_CLK_DIV_TIMER2_V << LEDC_CLK_DIV_TIMER2_S)
#define LEDC_CLK_DIV_TIMER2_V 0x0003FFFFU
#define LEDC_CLK_DIV_TIMER2_S 5
/** LEDC_TIMER2_PAUSE : R/W; bitpos: [23]; default: 0;
* This bit is used to suspend the counter in timer 2.
*/
#define LEDC_TIMER2_PAUSE (BIT(23))
#define LEDC_TIMER2_PAUSE_M (LEDC_TIMER2_PAUSE_V << LEDC_TIMER2_PAUSE_S)
#define LEDC_TIMER2_PAUSE_V 0x00000001U
#define LEDC_TIMER2_PAUSE_S 23
/** LEDC_TIMER2_RST : R/W; bitpos: [24]; default: 1;
* This bit is used to reset timer 2. The counter will show 0 after reset.
*/
#define LEDC_TIMER2_RST (BIT(24))
#define LEDC_TIMER2_RST_M (LEDC_TIMER2_RST_V << LEDC_TIMER2_RST_S)
#define LEDC_TIMER2_RST_V 0x00000001U
#define LEDC_TIMER2_RST_S 24
/** LEDC_TICK_SEL_TIMER2 : R/W; bitpos: [25]; default: 0;
* This bit is used to select clock for timer 2. When this bit is set to 1
* LEDC_APB_CLK_SEL[1:0] should be 1, otherwise the timer clock may be not accurate.
*
* 1'h0: SLOW_CLK 1'h1: REF_TICK
*/
#define LEDC_TICK_SEL_TIMER2 (BIT(25))
#define LEDC_TICK_SEL_TIMER2_M (LEDC_TICK_SEL_TIMER2_V << LEDC_TICK_SEL_TIMER2_S)
#define LEDC_TICK_SEL_TIMER2_V 0x00000001U
#define LEDC_TICK_SEL_TIMER2_S 25
/** LEDC_TIMER2_PARA_UP : WT; bitpos: [26]; default: 0;
* Set this bit to update LEDC_CLK_DIV_TIMER2 and LEDC_TIMER2_DUTY_RES.
*/
#define LEDC_TIMER2_PARA_UP (BIT(26))
#define LEDC_TIMER2_PARA_UP_M (LEDC_TIMER2_PARA_UP_V << LEDC_TIMER2_PARA_UP_S)
#define LEDC_TIMER2_PARA_UP_V 0x00000001U
#define LEDC_TIMER2_PARA_UP_S 26
/** LEDC_TIMER2_VALUE_REG register
* Timer 2 current counter value
*/
#define LEDC_TIMER2_VALUE_REG (DR_REG_LEDC_BASE + 0xb4)
/** LEDC_TIMER2_CNT : RO; bitpos: [19:0]; default: 0;
* This register stores the current counter value of timer 2.
*/
#define LEDC_TIMER2_CNT 0x000FFFFFU
#define LEDC_TIMER2_CNT_M (LEDC_TIMER2_CNT_V << LEDC_TIMER2_CNT_S)
#define LEDC_TIMER2_CNT_V 0x000FFFFFU
#define LEDC_TIMER2_CNT_S 0
/** LEDC_TIMER3_CONF_REG register
* Timer 3 configuration
*/
#define LEDC_TIMER3_CONF_REG (DR_REG_LEDC_BASE + 0xb8)
/** LEDC_TIMER3_DUTY_RES : R/W; bitpos: [4:0]; default: 0;
* This register is used to control the range of the counter in timer 3.
*/
#define LEDC_TIMER3_DUTY_RES 0x0000001FU
#define LEDC_TIMER3_DUTY_RES_M (LEDC_TIMER3_DUTY_RES_V << LEDC_TIMER3_DUTY_RES_S)
#define LEDC_TIMER3_DUTY_RES_V 0x0000001FU
#define LEDC_TIMER3_DUTY_RES_S 0
/** LEDC_CLK_DIV_TIMER3 : R/W; bitpos: [22:5]; default: 0;
* This register is used to configure the divisor for the divider in timer 3.
*
* The least significant eight bits represent the fractional part.
*/
#define LEDC_CLK_DIV_TIMER3 0x0003FFFFU
#define LEDC_CLK_DIV_TIMER3_M (LEDC_CLK_DIV_TIMER3_V << LEDC_CLK_DIV_TIMER3_S)
#define LEDC_CLK_DIV_TIMER3_V 0x0003FFFFU
#define LEDC_CLK_DIV_TIMER3_S 5
/** LEDC_TIMER3_PAUSE : R/W; bitpos: [23]; default: 0;
* This bit is used to suspend the counter in timer 3.
*/
#define LEDC_TIMER3_PAUSE (BIT(23))
#define LEDC_TIMER3_PAUSE_M (LEDC_TIMER3_PAUSE_V << LEDC_TIMER3_PAUSE_S)
#define LEDC_TIMER3_PAUSE_V 0x00000001U
#define LEDC_TIMER3_PAUSE_S 23
/** LEDC_TIMER3_RST : R/W; bitpos: [24]; default: 1;
* This bit is used to reset timer 3. The counter will show 0 after reset.
*/
#define LEDC_TIMER3_RST (BIT(24))
#define LEDC_TIMER3_RST_M (LEDC_TIMER3_RST_V << LEDC_TIMER3_RST_S)
#define LEDC_TIMER3_RST_V 0x00000001U
#define LEDC_TIMER3_RST_S 24
/** LEDC_TICK_SEL_TIMER3 : R/W; bitpos: [25]; default: 0;
* This bit is used to select clock for timer 3. When this bit is set to 1
* LEDC_APB_CLK_SEL[1:0] should be 1, otherwise the timer clock may be not accurate.
*
* 1'h0: SLOW_CLK 1'h1: REF_TICK
*/
#define LEDC_TICK_SEL_TIMER3 (BIT(25))
#define LEDC_TICK_SEL_TIMER3_M (LEDC_TICK_SEL_TIMER3_V << LEDC_TICK_SEL_TIMER3_S)
#define LEDC_TICK_SEL_TIMER3_V 0x00000001U
#define LEDC_TICK_SEL_TIMER3_S 25
/** LEDC_TIMER3_PARA_UP : WT; bitpos: [26]; default: 0;
* Set this bit to update LEDC_CLK_DIV_TIMER3 and LEDC_TIMER3_DUTY_RES.
*/
#define LEDC_TIMER3_PARA_UP (BIT(26))
#define LEDC_TIMER3_PARA_UP_M (LEDC_TIMER3_PARA_UP_V << LEDC_TIMER3_PARA_UP_S)
#define LEDC_TIMER3_PARA_UP_V 0x00000001U
#define LEDC_TIMER3_PARA_UP_S 26
/** LEDC_TIMER3_VALUE_REG register
* Timer 3 current counter value
*/
#define LEDC_TIMER3_VALUE_REG (DR_REG_LEDC_BASE + 0xbc)
/** LEDC_TIMER3_CNT : RO; bitpos: [19:0]; default: 0;
* This register stores the current counter value of timer 3.
*/
#define LEDC_TIMER3_CNT 0x000FFFFFU
#define LEDC_TIMER3_CNT_M (LEDC_TIMER3_CNT_V << LEDC_TIMER3_CNT_S)
#define LEDC_TIMER3_CNT_V 0x000FFFFFU
#define LEDC_TIMER3_CNT_S 0
/** LEDC_INT_RAW_REG register
* Raw interrupt status
*/
#define LEDC_INT_RAW_REG (DR_REG_LEDC_BASE + 0xc0)
/** LEDC_TIMER0_OVF_INT_RAW : R/WTC/SS; bitpos: [0]; default: 0;
* Triggered when the timer0 has reached its maximum counter value.
*/
#define LEDC_TIMER0_OVF_INT_RAW (BIT(0))
#define LEDC_TIMER0_OVF_INT_RAW_M (LEDC_TIMER0_OVF_INT_RAW_V << LEDC_TIMER0_OVF_INT_RAW_S)
#define LEDC_TIMER0_OVF_INT_RAW_V 0x00000001U
#define LEDC_TIMER0_OVF_INT_RAW_S 0
/** LEDC_TIMER1_OVF_INT_RAW : R/WTC/SS; bitpos: [1]; default: 0;
* Triggered when the timer1 has reached its maximum counter value.
*/
#define LEDC_TIMER1_OVF_INT_RAW (BIT(1))
#define LEDC_TIMER1_OVF_INT_RAW_M (LEDC_TIMER1_OVF_INT_RAW_V << LEDC_TIMER1_OVF_INT_RAW_S)
#define LEDC_TIMER1_OVF_INT_RAW_V 0x00000001U
#define LEDC_TIMER1_OVF_INT_RAW_S 1
/** LEDC_TIMER2_OVF_INT_RAW : R/WTC/SS; bitpos: [2]; default: 0;
* Triggered when the timer2 has reached its maximum counter value.
*/
#define LEDC_TIMER2_OVF_INT_RAW (BIT(2))
#define LEDC_TIMER2_OVF_INT_RAW_M (LEDC_TIMER2_OVF_INT_RAW_V << LEDC_TIMER2_OVF_INT_RAW_S)
#define LEDC_TIMER2_OVF_INT_RAW_V 0x00000001U
#define LEDC_TIMER2_OVF_INT_RAW_S 2
/** LEDC_TIMER3_OVF_INT_RAW : R/WTC/SS; bitpos: [3]; default: 0;
* Triggered when the timer3 has reached its maximum counter value.
*/
#define LEDC_TIMER3_OVF_INT_RAW (BIT(3))
#define LEDC_TIMER3_OVF_INT_RAW_M (LEDC_TIMER3_OVF_INT_RAW_V << LEDC_TIMER3_OVF_INT_RAW_S)
#define LEDC_TIMER3_OVF_INT_RAW_V 0x00000001U
#define LEDC_TIMER3_OVF_INT_RAW_S 3
/** LEDC_DUTY_CHNG_END_CH0_INT_RAW : R/WTC/SS; bitpos: [4]; default: 0;
* Interrupt raw bit for channel 0. Triggered when the gradual change of duty has
* finished.
*/
#define LEDC_DUTY_CHNG_END_CH0_INT_RAW (BIT(4))
#define LEDC_DUTY_CHNG_END_CH0_INT_RAW_M (LEDC_DUTY_CHNG_END_CH0_INT_RAW_V << LEDC_DUTY_CHNG_END_CH0_INT_RAW_S)
#define LEDC_DUTY_CHNG_END_CH0_INT_RAW_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH0_INT_RAW_S 4
/** LEDC_DUTY_CHNG_END_CH1_INT_RAW : R/WTC/SS; bitpos: [5]; default: 0;
* Interrupt raw bit for channel 1. Triggered when the gradual change of duty has
* finished.
*/
#define LEDC_DUTY_CHNG_END_CH1_INT_RAW (BIT(5))
#define LEDC_DUTY_CHNG_END_CH1_INT_RAW_M (LEDC_DUTY_CHNG_END_CH1_INT_RAW_V << LEDC_DUTY_CHNG_END_CH1_INT_RAW_S)
#define LEDC_DUTY_CHNG_END_CH1_INT_RAW_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH1_INT_RAW_S 5
/** LEDC_DUTY_CHNG_END_CH2_INT_RAW : R/WTC/SS; bitpos: [6]; default: 0;
* Interrupt raw bit for channel 2. Triggered when the gradual change of duty has
* finished.
*/
#define LEDC_DUTY_CHNG_END_CH2_INT_RAW (BIT(6))
#define LEDC_DUTY_CHNG_END_CH2_INT_RAW_M (LEDC_DUTY_CHNG_END_CH2_INT_RAW_V << LEDC_DUTY_CHNG_END_CH2_INT_RAW_S)
#define LEDC_DUTY_CHNG_END_CH2_INT_RAW_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH2_INT_RAW_S 6
/** LEDC_DUTY_CHNG_END_CH3_INT_RAW : R/WTC/SS; bitpos: [7]; default: 0;
* Interrupt raw bit for channel 3. Triggered when the gradual change of duty has
* finished.
*/
#define LEDC_DUTY_CHNG_END_CH3_INT_RAW (BIT(7))
#define LEDC_DUTY_CHNG_END_CH3_INT_RAW_M (LEDC_DUTY_CHNG_END_CH3_INT_RAW_V << LEDC_DUTY_CHNG_END_CH3_INT_RAW_S)
#define LEDC_DUTY_CHNG_END_CH3_INT_RAW_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH3_INT_RAW_S 7
/** LEDC_DUTY_CHNG_END_CH4_INT_RAW : R/WTC/SS; bitpos: [8]; default: 0;
* Interrupt raw bit for channel 4. Triggered when the gradual change of duty has
* finished.
*/
#define LEDC_DUTY_CHNG_END_CH4_INT_RAW (BIT(8))
#define LEDC_DUTY_CHNG_END_CH4_INT_RAW_M (LEDC_DUTY_CHNG_END_CH4_INT_RAW_V << LEDC_DUTY_CHNG_END_CH4_INT_RAW_S)
#define LEDC_DUTY_CHNG_END_CH4_INT_RAW_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH4_INT_RAW_S 8
/** LEDC_DUTY_CHNG_END_CH5_INT_RAW : R/WTC/SS; bitpos: [9]; default: 0;
* Interrupt raw bit for channel 5. Triggered when the gradual change of duty has
* finished.
*/
#define LEDC_DUTY_CHNG_END_CH5_INT_RAW (BIT(9))
#define LEDC_DUTY_CHNG_END_CH5_INT_RAW_M (LEDC_DUTY_CHNG_END_CH5_INT_RAW_V << LEDC_DUTY_CHNG_END_CH5_INT_RAW_S)
#define LEDC_DUTY_CHNG_END_CH5_INT_RAW_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH5_INT_RAW_S 9
/** LEDC_OVF_CNT_CH0_INT_RAW : R/WTC/SS; bitpos: [12]; default: 0;
* Interrupt raw bit for channel 0. Triggered when the ovf_cnt has reached the value
* specified by LEDC_OVF_NUM_CH0.
*/
#define LEDC_OVF_CNT_CH0_INT_RAW (BIT(12))
#define LEDC_OVF_CNT_CH0_INT_RAW_M (LEDC_OVF_CNT_CH0_INT_RAW_V << LEDC_OVF_CNT_CH0_INT_RAW_S)
#define LEDC_OVF_CNT_CH0_INT_RAW_V 0x00000001U
#define LEDC_OVF_CNT_CH0_INT_RAW_S 12
/** LEDC_OVF_CNT_CH1_INT_RAW : R/WTC/SS; bitpos: [13]; default: 0;
* Interrupt raw bit for channel 1. Triggered when the ovf_cnt has reached the value
* specified by LEDC_OVF_NUM_CH1.
*/
#define LEDC_OVF_CNT_CH1_INT_RAW (BIT(13))
#define LEDC_OVF_CNT_CH1_INT_RAW_M (LEDC_OVF_CNT_CH1_INT_RAW_V << LEDC_OVF_CNT_CH1_INT_RAW_S)
#define LEDC_OVF_CNT_CH1_INT_RAW_V 0x00000001U
#define LEDC_OVF_CNT_CH1_INT_RAW_S 13
/** LEDC_OVF_CNT_CH2_INT_RAW : R/WTC/SS; bitpos: [14]; default: 0;
* Interrupt raw bit for channel 2. Triggered when the ovf_cnt has reached the value
* specified by LEDC_OVF_NUM_CH2.
*/
#define LEDC_OVF_CNT_CH2_INT_RAW (BIT(14))
#define LEDC_OVF_CNT_CH2_INT_RAW_M (LEDC_OVF_CNT_CH2_INT_RAW_V << LEDC_OVF_CNT_CH2_INT_RAW_S)
#define LEDC_OVF_CNT_CH2_INT_RAW_V 0x00000001U
#define LEDC_OVF_CNT_CH2_INT_RAW_S 14
/** LEDC_OVF_CNT_CH3_INT_RAW : R/WTC/SS; bitpos: [15]; default: 0;
* Interrupt raw bit for channel 3. Triggered when the ovf_cnt has reached the value
* specified by LEDC_OVF_NUM_CH3.
*/
#define LEDC_OVF_CNT_CH3_INT_RAW (BIT(15))
#define LEDC_OVF_CNT_CH3_INT_RAW_M (LEDC_OVF_CNT_CH3_INT_RAW_V << LEDC_OVF_CNT_CH3_INT_RAW_S)
#define LEDC_OVF_CNT_CH3_INT_RAW_V 0x00000001U
#define LEDC_OVF_CNT_CH3_INT_RAW_S 15
/** LEDC_OVF_CNT_CH4_INT_RAW : R/WTC/SS; bitpos: [16]; default: 0;
* Interrupt raw bit for channel 4. Triggered when the ovf_cnt has reached the value
* specified by LEDC_OVF_NUM_CH4.
*/
#define LEDC_OVF_CNT_CH4_INT_RAW (BIT(16))
#define LEDC_OVF_CNT_CH4_INT_RAW_M (LEDC_OVF_CNT_CH4_INT_RAW_V << LEDC_OVF_CNT_CH4_INT_RAW_S)
#define LEDC_OVF_CNT_CH4_INT_RAW_V 0x00000001U
#define LEDC_OVF_CNT_CH4_INT_RAW_S 16
/** LEDC_OVF_CNT_CH5_INT_RAW : R/WTC/SS; bitpos: [17]; default: 0;
* Interrupt raw bit for channel 5. Triggered when the ovf_cnt has reached the value
* specified by LEDC_OVF_NUM_CH5.
*/
#define LEDC_OVF_CNT_CH5_INT_RAW (BIT(17))
#define LEDC_OVF_CNT_CH5_INT_RAW_M (LEDC_OVF_CNT_CH5_INT_RAW_V << LEDC_OVF_CNT_CH5_INT_RAW_S)
#define LEDC_OVF_CNT_CH5_INT_RAW_V 0x00000001U
#define LEDC_OVF_CNT_CH5_INT_RAW_S 17
/** LEDC_INT_ST_REG register
* Masked interrupt status
*/
#define LEDC_INT_ST_REG (DR_REG_LEDC_BASE + 0xc4)
/** LEDC_TIMER0_OVF_INT_ST : RO; bitpos: [0]; default: 0;
* This is the masked interrupt status bit for the LEDC_TIMER0_OVF_INT interrupt when
* LEDC_TIMER0_OVF_INT_ENA is set to 1.
*/
#define LEDC_TIMER0_OVF_INT_ST (BIT(0))
#define LEDC_TIMER0_OVF_INT_ST_M (LEDC_TIMER0_OVF_INT_ST_V << LEDC_TIMER0_OVF_INT_ST_S)
#define LEDC_TIMER0_OVF_INT_ST_V 0x00000001U
#define LEDC_TIMER0_OVF_INT_ST_S 0
/** LEDC_TIMER1_OVF_INT_ST : RO; bitpos: [1]; default: 0;
* This is the masked interrupt status bit for the LEDC_TIMER1_OVF_INT interrupt when
* LEDC_TIMER1_OVF_INT_ENA is set to 1.
*/
#define LEDC_TIMER1_OVF_INT_ST (BIT(1))
#define LEDC_TIMER1_OVF_INT_ST_M (LEDC_TIMER1_OVF_INT_ST_V << LEDC_TIMER1_OVF_INT_ST_S)
#define LEDC_TIMER1_OVF_INT_ST_V 0x00000001U
#define LEDC_TIMER1_OVF_INT_ST_S 1
/** LEDC_TIMER2_OVF_INT_ST : RO; bitpos: [2]; default: 0;
* This is the masked interrupt status bit for the LEDC_TIMER2_OVF_INT interrupt when
* LEDC_TIMER2_OVF_INT_ENA is set to 1.
*/
#define LEDC_TIMER2_OVF_INT_ST (BIT(2))
#define LEDC_TIMER2_OVF_INT_ST_M (LEDC_TIMER2_OVF_INT_ST_V << LEDC_TIMER2_OVF_INT_ST_S)
#define LEDC_TIMER2_OVF_INT_ST_V 0x00000001U
#define LEDC_TIMER2_OVF_INT_ST_S 2
/** LEDC_TIMER3_OVF_INT_ST : RO; bitpos: [3]; default: 0;
* This is the masked interrupt status bit for the LEDC_TIMER3_OVF_INT interrupt when
* LEDC_TIMER3_OVF_INT_ENA is set to 1.
*/
#define LEDC_TIMER3_OVF_INT_ST (BIT(3))
#define LEDC_TIMER3_OVF_INT_ST_M (LEDC_TIMER3_OVF_INT_ST_V << LEDC_TIMER3_OVF_INT_ST_S)
#define LEDC_TIMER3_OVF_INT_ST_V 0x00000001U
#define LEDC_TIMER3_OVF_INT_ST_S 3
/** LEDC_DUTY_CHNG_END_CH0_INT_ST : RO; bitpos: [4]; default: 0;
* This is the masked interrupt status bit for the LEDC_DUTY_CHNG_END_CH0_INT
* interrupt when LEDC_DUTY_CHNG_END_CH0_INT_ENA is set to 1.
*/
#define LEDC_DUTY_CHNG_END_CH0_INT_ST (BIT(4))
#define LEDC_DUTY_CHNG_END_CH0_INT_ST_M (LEDC_DUTY_CHNG_END_CH0_INT_ST_V << LEDC_DUTY_CHNG_END_CH0_INT_ST_S)
#define LEDC_DUTY_CHNG_END_CH0_INT_ST_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH0_INT_ST_S 4
/** LEDC_DUTY_CHNG_END_CH1_INT_ST : RO; bitpos: [5]; default: 0;
* This is the masked interrupt status bit for the LEDC_DUTY_CHNG_END_CH1_INT
* interrupt when LEDC_DUTY_CHNG_END_CH1_INT_ENA is set to 1.
*/
#define LEDC_DUTY_CHNG_END_CH1_INT_ST (BIT(5))
#define LEDC_DUTY_CHNG_END_CH1_INT_ST_M (LEDC_DUTY_CHNG_END_CH1_INT_ST_V << LEDC_DUTY_CHNG_END_CH1_INT_ST_S)
#define LEDC_DUTY_CHNG_END_CH1_INT_ST_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH1_INT_ST_S 5
/** LEDC_DUTY_CHNG_END_CH2_INT_ST : RO; bitpos: [6]; default: 0;
* This is the masked interrupt status bit for the LEDC_DUTY_CHNG_END_CH2_INT
* interrupt when LEDC_DUTY_CHNG_END_CH2_INT_ENA is set to 1.
*/
#define LEDC_DUTY_CHNG_END_CH2_INT_ST (BIT(6))
#define LEDC_DUTY_CHNG_END_CH2_INT_ST_M (LEDC_DUTY_CHNG_END_CH2_INT_ST_V << LEDC_DUTY_CHNG_END_CH2_INT_ST_S)
#define LEDC_DUTY_CHNG_END_CH2_INT_ST_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH2_INT_ST_S 6
/** LEDC_DUTY_CHNG_END_CH3_INT_ST : RO; bitpos: [7]; default: 0;
* This is the masked interrupt status bit for the LEDC_DUTY_CHNG_END_CH3_INT
* interrupt when LEDC_DUTY_CHNG_END_CH3_INT_ENA is set to 1.
*/
#define LEDC_DUTY_CHNG_END_CH3_INT_ST (BIT(7))
#define LEDC_DUTY_CHNG_END_CH3_INT_ST_M (LEDC_DUTY_CHNG_END_CH3_INT_ST_V << LEDC_DUTY_CHNG_END_CH3_INT_ST_S)
#define LEDC_DUTY_CHNG_END_CH3_INT_ST_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH3_INT_ST_S 7
/** LEDC_DUTY_CHNG_END_CH4_INT_ST : RO; bitpos: [8]; default: 0;
* This is the masked interrupt status bit for the LEDC_DUTY_CHNG_END_CH4_INT
* interrupt when LEDC_DUTY_CHNG_END_CH4_INT_ENA is set to 1.
*/
#define LEDC_DUTY_CHNG_END_CH4_INT_ST (BIT(8))
#define LEDC_DUTY_CHNG_END_CH4_INT_ST_M (LEDC_DUTY_CHNG_END_CH4_INT_ST_V << LEDC_DUTY_CHNG_END_CH4_INT_ST_S)
#define LEDC_DUTY_CHNG_END_CH4_INT_ST_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH4_INT_ST_S 8
/** LEDC_DUTY_CHNG_END_CH5_INT_ST : RO; bitpos: [9]; default: 0;
* This is the masked interrupt status bit for the LEDC_DUTY_CHNG_END_CH5_INT
* interrupt when LEDC_DUTY_CHNG_END_CH5_INT_ENA is set to 1.
*/
#define LEDC_DUTY_CHNG_END_CH5_INT_ST (BIT(9))
#define LEDC_DUTY_CHNG_END_CH5_INT_ST_M (LEDC_DUTY_CHNG_END_CH5_INT_ST_V << LEDC_DUTY_CHNG_END_CH5_INT_ST_S)
#define LEDC_DUTY_CHNG_END_CH5_INT_ST_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH5_INT_ST_S 9
/** LEDC_OVF_CNT_CH0_INT_ST : RO; bitpos: [12]; default: 0;
* This is the masked interrupt status bit for the LEDC_OVF_CNT_CH0_INT interrupt when
* LEDC_OVF_CNT_CH0_INT_ENA is set to 1.
*/
#define LEDC_OVF_CNT_CH0_INT_ST (BIT(12))
#define LEDC_OVF_CNT_CH0_INT_ST_M (LEDC_OVF_CNT_CH0_INT_ST_V << LEDC_OVF_CNT_CH0_INT_ST_S)
#define LEDC_OVF_CNT_CH0_INT_ST_V 0x00000001U
#define LEDC_OVF_CNT_CH0_INT_ST_S 12
/** LEDC_OVF_CNT_CH1_INT_ST : RO; bitpos: [13]; default: 0;
* This is the masked interrupt status bit for the LEDC_OVF_CNT_CH1_INT interrupt when
* LEDC_OVF_CNT_CH1_INT_ENA is set to 1.
*/
#define LEDC_OVF_CNT_CH1_INT_ST (BIT(13))
#define LEDC_OVF_CNT_CH1_INT_ST_M (LEDC_OVF_CNT_CH1_INT_ST_V << LEDC_OVF_CNT_CH1_INT_ST_S)
#define LEDC_OVF_CNT_CH1_INT_ST_V 0x00000001U
#define LEDC_OVF_CNT_CH1_INT_ST_S 13
/** LEDC_OVF_CNT_CH2_INT_ST : RO; bitpos: [14]; default: 0;
* This is the masked interrupt status bit for the LEDC_OVF_CNT_CH2_INT interrupt when
* LEDC_OVF_CNT_CH2_INT_ENA is set to 1.
*/
#define LEDC_OVF_CNT_CH2_INT_ST (BIT(14))
#define LEDC_OVF_CNT_CH2_INT_ST_M (LEDC_OVF_CNT_CH2_INT_ST_V << LEDC_OVF_CNT_CH2_INT_ST_S)
#define LEDC_OVF_CNT_CH2_INT_ST_V 0x00000001U
#define LEDC_OVF_CNT_CH2_INT_ST_S 14
/** LEDC_OVF_CNT_CH3_INT_ST : RO; bitpos: [15]; default: 0;
* This is the masked interrupt status bit for the LEDC_OVF_CNT_CH3_INT interrupt when
* LEDC_OVF_CNT_CH3_INT_ENA is set to 1.
*/
#define LEDC_OVF_CNT_CH3_INT_ST (BIT(15))
#define LEDC_OVF_CNT_CH3_INT_ST_M (LEDC_OVF_CNT_CH3_INT_ST_V << LEDC_OVF_CNT_CH3_INT_ST_S)
#define LEDC_OVF_CNT_CH3_INT_ST_V 0x00000001U
#define LEDC_OVF_CNT_CH3_INT_ST_S 15
/** LEDC_OVF_CNT_CH4_INT_ST : RO; bitpos: [16]; default: 0;
* This is the masked interrupt status bit for the LEDC_OVF_CNT_CH4_INT interrupt when
* LEDC_OVF_CNT_CH4_INT_ENA is set to 1.
*/
#define LEDC_OVF_CNT_CH4_INT_ST (BIT(16))
#define LEDC_OVF_CNT_CH4_INT_ST_M (LEDC_OVF_CNT_CH4_INT_ST_V << LEDC_OVF_CNT_CH4_INT_ST_S)
#define LEDC_OVF_CNT_CH4_INT_ST_V 0x00000001U
#define LEDC_OVF_CNT_CH4_INT_ST_S 16
/** LEDC_OVF_CNT_CH5_INT_ST : RO; bitpos: [17]; default: 0;
* This is the masked interrupt status bit for the LEDC_OVF_CNT_CH5_INT interrupt when
* LEDC_OVF_CNT_CH5_INT_ENA is set to 1.
*/
#define LEDC_OVF_CNT_CH5_INT_ST (BIT(17))
#define LEDC_OVF_CNT_CH5_INT_ST_M (LEDC_OVF_CNT_CH5_INT_ST_V << LEDC_OVF_CNT_CH5_INT_ST_S)
#define LEDC_OVF_CNT_CH5_INT_ST_V 0x00000001U
#define LEDC_OVF_CNT_CH5_INT_ST_S 17
/** LEDC_INT_ENA_REG register
* Interrupt enable bits
*/
#define LEDC_INT_ENA_REG (DR_REG_LEDC_BASE + 0xc8)
/** LEDC_TIMER0_OVF_INT_ENA : R/W; bitpos: [0]; default: 0;
* The interrupt enable bit for the LEDC_TIMER0_OVF_INT interrupt.
*/
#define LEDC_TIMER0_OVF_INT_ENA (BIT(0))
#define LEDC_TIMER0_OVF_INT_ENA_M (LEDC_TIMER0_OVF_INT_ENA_V << LEDC_TIMER0_OVF_INT_ENA_S)
#define LEDC_TIMER0_OVF_INT_ENA_V 0x00000001U
#define LEDC_TIMER0_OVF_INT_ENA_S 0
/** LEDC_TIMER1_OVF_INT_ENA : R/W; bitpos: [1]; default: 0;
* The interrupt enable bit for the LEDC_TIMER1_OVF_INT interrupt.
*/
#define LEDC_TIMER1_OVF_INT_ENA (BIT(1))
#define LEDC_TIMER1_OVF_INT_ENA_M (LEDC_TIMER1_OVF_INT_ENA_V << LEDC_TIMER1_OVF_INT_ENA_S)
#define LEDC_TIMER1_OVF_INT_ENA_V 0x00000001U
#define LEDC_TIMER1_OVF_INT_ENA_S 1
/** LEDC_TIMER2_OVF_INT_ENA : R/W; bitpos: [2]; default: 0;
* The interrupt enable bit for the LEDC_TIMER2_OVF_INT interrupt.
*/
#define LEDC_TIMER2_OVF_INT_ENA (BIT(2))
#define LEDC_TIMER2_OVF_INT_ENA_M (LEDC_TIMER2_OVF_INT_ENA_V << LEDC_TIMER2_OVF_INT_ENA_S)
#define LEDC_TIMER2_OVF_INT_ENA_V 0x00000001U
#define LEDC_TIMER2_OVF_INT_ENA_S 2
/** LEDC_TIMER3_OVF_INT_ENA : R/W; bitpos: [3]; default: 0;
* The interrupt enable bit for the LEDC_TIMER3_OVF_INT interrupt.
*/
#define LEDC_TIMER3_OVF_INT_ENA (BIT(3))
#define LEDC_TIMER3_OVF_INT_ENA_M (LEDC_TIMER3_OVF_INT_ENA_V << LEDC_TIMER3_OVF_INT_ENA_S)
#define LEDC_TIMER3_OVF_INT_ENA_V 0x00000001U
#define LEDC_TIMER3_OVF_INT_ENA_S 3
/** LEDC_DUTY_CHNG_END_CH0_INT_ENA : R/W; bitpos: [4]; default: 0;
* The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH0_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH0_INT_ENA (BIT(4))
#define LEDC_DUTY_CHNG_END_CH0_INT_ENA_M (LEDC_DUTY_CHNG_END_CH0_INT_ENA_V << LEDC_DUTY_CHNG_END_CH0_INT_ENA_S)
#define LEDC_DUTY_CHNG_END_CH0_INT_ENA_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH0_INT_ENA_S 4
/** LEDC_DUTY_CHNG_END_CH1_INT_ENA : R/W; bitpos: [5]; default: 0;
* The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH1_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH1_INT_ENA (BIT(5))
#define LEDC_DUTY_CHNG_END_CH1_INT_ENA_M (LEDC_DUTY_CHNG_END_CH1_INT_ENA_V << LEDC_DUTY_CHNG_END_CH1_INT_ENA_S)
#define LEDC_DUTY_CHNG_END_CH1_INT_ENA_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH1_INT_ENA_S 5
/** LEDC_DUTY_CHNG_END_CH2_INT_ENA : R/W; bitpos: [6]; default: 0;
* The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH2_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH2_INT_ENA (BIT(6))
#define LEDC_DUTY_CHNG_END_CH2_INT_ENA_M (LEDC_DUTY_CHNG_END_CH2_INT_ENA_V << LEDC_DUTY_CHNG_END_CH2_INT_ENA_S)
#define LEDC_DUTY_CHNG_END_CH2_INT_ENA_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH2_INT_ENA_S 6
/** LEDC_DUTY_CHNG_END_CH3_INT_ENA : R/W; bitpos: [7]; default: 0;
* The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH3_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH3_INT_ENA (BIT(7))
#define LEDC_DUTY_CHNG_END_CH3_INT_ENA_M (LEDC_DUTY_CHNG_END_CH3_INT_ENA_V << LEDC_DUTY_CHNG_END_CH3_INT_ENA_S)
#define LEDC_DUTY_CHNG_END_CH3_INT_ENA_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH3_INT_ENA_S 7
/** LEDC_DUTY_CHNG_END_CH4_INT_ENA : R/W; bitpos: [8]; default: 0;
* The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH4_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH4_INT_ENA (BIT(8))
#define LEDC_DUTY_CHNG_END_CH4_INT_ENA_M (LEDC_DUTY_CHNG_END_CH4_INT_ENA_V << LEDC_DUTY_CHNG_END_CH4_INT_ENA_S)
#define LEDC_DUTY_CHNG_END_CH4_INT_ENA_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH4_INT_ENA_S 8
/** LEDC_DUTY_CHNG_END_CH5_INT_ENA : R/W; bitpos: [9]; default: 0;
* The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH5_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH5_INT_ENA (BIT(9))
#define LEDC_DUTY_CHNG_END_CH5_INT_ENA_M (LEDC_DUTY_CHNG_END_CH5_INT_ENA_V << LEDC_DUTY_CHNG_END_CH5_INT_ENA_S)
#define LEDC_DUTY_CHNG_END_CH5_INT_ENA_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH5_INT_ENA_S 9
/** LEDC_OVF_CNT_CH0_INT_ENA : R/W; bitpos: [12]; default: 0;
* The interrupt enable bit for the LEDC_OVF_CNT_CH0_INT interrupt.
*/
#define LEDC_OVF_CNT_CH0_INT_ENA (BIT(12))
#define LEDC_OVF_CNT_CH0_INT_ENA_M (LEDC_OVF_CNT_CH0_INT_ENA_V << LEDC_OVF_CNT_CH0_INT_ENA_S)
#define LEDC_OVF_CNT_CH0_INT_ENA_V 0x00000001U
#define LEDC_OVF_CNT_CH0_INT_ENA_S 12
/** LEDC_OVF_CNT_CH1_INT_ENA : R/W; bitpos: [13]; default: 0;
* The interrupt enable bit for the LEDC_OVF_CNT_CH1_INT interrupt.
*/
#define LEDC_OVF_CNT_CH1_INT_ENA (BIT(13))
#define LEDC_OVF_CNT_CH1_INT_ENA_M (LEDC_OVF_CNT_CH1_INT_ENA_V << LEDC_OVF_CNT_CH1_INT_ENA_S)
#define LEDC_OVF_CNT_CH1_INT_ENA_V 0x00000001U
#define LEDC_OVF_CNT_CH1_INT_ENA_S 13
/** LEDC_OVF_CNT_CH2_INT_ENA : R/W; bitpos: [14]; default: 0;
* The interrupt enable bit for the LEDC_OVF_CNT_CH2_INT interrupt.
*/
#define LEDC_OVF_CNT_CH2_INT_ENA (BIT(14))
#define LEDC_OVF_CNT_CH2_INT_ENA_M (LEDC_OVF_CNT_CH2_INT_ENA_V << LEDC_OVF_CNT_CH2_INT_ENA_S)
#define LEDC_OVF_CNT_CH2_INT_ENA_V 0x00000001U
#define LEDC_OVF_CNT_CH2_INT_ENA_S 14
/** LEDC_OVF_CNT_CH3_INT_ENA : R/W; bitpos: [15]; default: 0;
* The interrupt enable bit for the LEDC_OVF_CNT_CH3_INT interrupt.
*/
#define LEDC_OVF_CNT_CH3_INT_ENA (BIT(15))
#define LEDC_OVF_CNT_CH3_INT_ENA_M (LEDC_OVF_CNT_CH3_INT_ENA_V << LEDC_OVF_CNT_CH3_INT_ENA_S)
#define LEDC_OVF_CNT_CH3_INT_ENA_V 0x00000001U
#define LEDC_OVF_CNT_CH3_INT_ENA_S 15
/** LEDC_OVF_CNT_CH4_INT_ENA : R/W; bitpos: [16]; default: 0;
* The interrupt enable bit for the LEDC_OVF_CNT_CH4_INT interrupt.
*/
#define LEDC_OVF_CNT_CH4_INT_ENA (BIT(16))
#define LEDC_OVF_CNT_CH4_INT_ENA_M (LEDC_OVF_CNT_CH4_INT_ENA_V << LEDC_OVF_CNT_CH4_INT_ENA_S)
#define LEDC_OVF_CNT_CH4_INT_ENA_V 0x00000001U
#define LEDC_OVF_CNT_CH4_INT_ENA_S 16
/** LEDC_OVF_CNT_CH5_INT_ENA : R/W; bitpos: [17]; default: 0;
* The interrupt enable bit for the LEDC_OVF_CNT_CH5_INT interrupt.
*/
#define LEDC_OVF_CNT_CH5_INT_ENA (BIT(17))
#define LEDC_OVF_CNT_CH5_INT_ENA_M (LEDC_OVF_CNT_CH5_INT_ENA_V << LEDC_OVF_CNT_CH5_INT_ENA_S)
#define LEDC_OVF_CNT_CH5_INT_ENA_V 0x00000001U
#define LEDC_OVF_CNT_CH5_INT_ENA_S 17
/** LEDC_INT_CLR_REG register
* Interrupt clear bits
*/
#define LEDC_INT_CLR_REG (DR_REG_LEDC_BASE + 0xcc)
/** LEDC_TIMER0_OVF_INT_CLR : WT; bitpos: [0]; default: 0;
* Set this bit to clear the LEDC_TIMER0_OVF_INT interrupt.
*/
#define LEDC_TIMER0_OVF_INT_CLR (BIT(0))
#define LEDC_TIMER0_OVF_INT_CLR_M (LEDC_TIMER0_OVF_INT_CLR_V << LEDC_TIMER0_OVF_INT_CLR_S)
#define LEDC_TIMER0_OVF_INT_CLR_V 0x00000001U
#define LEDC_TIMER0_OVF_INT_CLR_S 0
/** LEDC_TIMER1_OVF_INT_CLR : WT; bitpos: [1]; default: 0;
* Set this bit to clear the LEDC_TIMER1_OVF_INT interrupt.
*/
#define LEDC_TIMER1_OVF_INT_CLR (BIT(1))
#define LEDC_TIMER1_OVF_INT_CLR_M (LEDC_TIMER1_OVF_INT_CLR_V << LEDC_TIMER1_OVF_INT_CLR_S)
#define LEDC_TIMER1_OVF_INT_CLR_V 0x00000001U
#define LEDC_TIMER1_OVF_INT_CLR_S 1
/** LEDC_TIMER2_OVF_INT_CLR : WT; bitpos: [2]; default: 0;
* Set this bit to clear the LEDC_TIMER2_OVF_INT interrupt.
*/
#define LEDC_TIMER2_OVF_INT_CLR (BIT(2))
#define LEDC_TIMER2_OVF_INT_CLR_M (LEDC_TIMER2_OVF_INT_CLR_V << LEDC_TIMER2_OVF_INT_CLR_S)
#define LEDC_TIMER2_OVF_INT_CLR_V 0x00000001U
#define LEDC_TIMER2_OVF_INT_CLR_S 2
/** LEDC_TIMER3_OVF_INT_CLR : WT; bitpos: [3]; default: 0;
* Set this bit to clear the LEDC_TIMER3_OVF_INT interrupt.
*/
#define LEDC_TIMER3_OVF_INT_CLR (BIT(3))
#define LEDC_TIMER3_OVF_INT_CLR_M (LEDC_TIMER3_OVF_INT_CLR_V << LEDC_TIMER3_OVF_INT_CLR_S)
#define LEDC_TIMER3_OVF_INT_CLR_V 0x00000001U
#define LEDC_TIMER3_OVF_INT_CLR_S 3
/** LEDC_DUTY_CHNG_END_CH0_INT_CLR : WT; bitpos: [4]; default: 0;
* Set this bit to clear the LEDC_DUTY_CHNG_END_CH0_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH0_INT_CLR (BIT(4))
#define LEDC_DUTY_CHNG_END_CH0_INT_CLR_M (LEDC_DUTY_CHNG_END_CH0_INT_CLR_V << LEDC_DUTY_CHNG_END_CH0_INT_CLR_S)
#define LEDC_DUTY_CHNG_END_CH0_INT_CLR_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH0_INT_CLR_S 4
/** LEDC_DUTY_CHNG_END_CH1_INT_CLR : WT; bitpos: [5]; default: 0;
* Set this bit to clear the LEDC_DUTY_CHNG_END_CH1_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH1_INT_CLR (BIT(5))
#define LEDC_DUTY_CHNG_END_CH1_INT_CLR_M (LEDC_DUTY_CHNG_END_CH1_INT_CLR_V << LEDC_DUTY_CHNG_END_CH1_INT_CLR_S)
#define LEDC_DUTY_CHNG_END_CH1_INT_CLR_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH1_INT_CLR_S 5
/** LEDC_DUTY_CHNG_END_CH2_INT_CLR : WT; bitpos: [6]; default: 0;
* Set this bit to clear the LEDC_DUTY_CHNG_END_CH2_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH2_INT_CLR (BIT(6))
#define LEDC_DUTY_CHNG_END_CH2_INT_CLR_M (LEDC_DUTY_CHNG_END_CH2_INT_CLR_V << LEDC_DUTY_CHNG_END_CH2_INT_CLR_S)
#define LEDC_DUTY_CHNG_END_CH2_INT_CLR_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH2_INT_CLR_S 6
/** LEDC_DUTY_CHNG_END_CH3_INT_CLR : WT; bitpos: [7]; default: 0;
* Set this bit to clear the LEDC_DUTY_CHNG_END_CH3_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH3_INT_CLR (BIT(7))
#define LEDC_DUTY_CHNG_END_CH3_INT_CLR_M (LEDC_DUTY_CHNG_END_CH3_INT_CLR_V << LEDC_DUTY_CHNG_END_CH3_INT_CLR_S)
#define LEDC_DUTY_CHNG_END_CH3_INT_CLR_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH3_INT_CLR_S 7
/** LEDC_DUTY_CHNG_END_CH4_INT_CLR : WT; bitpos: [8]; default: 0;
* Set this bit to clear the LEDC_DUTY_CHNG_END_CH4_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH4_INT_CLR (BIT(8))
#define LEDC_DUTY_CHNG_END_CH4_INT_CLR_M (LEDC_DUTY_CHNG_END_CH4_INT_CLR_V << LEDC_DUTY_CHNG_END_CH4_INT_CLR_S)
#define LEDC_DUTY_CHNG_END_CH4_INT_CLR_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH4_INT_CLR_S 8
/** LEDC_DUTY_CHNG_END_CH5_INT_CLR : WT; bitpos: [9]; default: 0;
* Set this bit to clear the LEDC_DUTY_CHNG_END_CH5_INT interrupt.
*/
#define LEDC_DUTY_CHNG_END_CH5_INT_CLR (BIT(9))
#define LEDC_DUTY_CHNG_END_CH5_INT_CLR_M (LEDC_DUTY_CHNG_END_CH5_INT_CLR_V << LEDC_DUTY_CHNG_END_CH5_INT_CLR_S)
#define LEDC_DUTY_CHNG_END_CH5_INT_CLR_V 0x00000001U
#define LEDC_DUTY_CHNG_END_CH5_INT_CLR_S 9
/** LEDC_OVF_CNT_CH0_INT_CLR : WT; bitpos: [12]; default: 0;
* Set this bit to clear the LEDC_OVF_CNT_CH0_INT interrupt.
*/
#define LEDC_OVF_CNT_CH0_INT_CLR (BIT(12))
#define LEDC_OVF_CNT_CH0_INT_CLR_M (LEDC_OVF_CNT_CH0_INT_CLR_V << LEDC_OVF_CNT_CH0_INT_CLR_S)
#define LEDC_OVF_CNT_CH0_INT_CLR_V 0x00000001U
#define LEDC_OVF_CNT_CH0_INT_CLR_S 12
/** LEDC_OVF_CNT_CH1_INT_CLR : WT; bitpos: [13]; default: 0;
* Set this bit to clear the LEDC_OVF_CNT_CH1_INT interrupt.
*/
#define LEDC_OVF_CNT_CH1_INT_CLR (BIT(13))
#define LEDC_OVF_CNT_CH1_INT_CLR_M (LEDC_OVF_CNT_CH1_INT_CLR_V << LEDC_OVF_CNT_CH1_INT_CLR_S)
#define LEDC_OVF_CNT_CH1_INT_CLR_V 0x00000001U
#define LEDC_OVF_CNT_CH1_INT_CLR_S 13
/** LEDC_OVF_CNT_CH2_INT_CLR : WT; bitpos: [14]; default: 0;
* Set this bit to clear the LEDC_OVF_CNT_CH2_INT interrupt.
*/
#define LEDC_OVF_CNT_CH2_INT_CLR (BIT(14))
#define LEDC_OVF_CNT_CH2_INT_CLR_M (LEDC_OVF_CNT_CH2_INT_CLR_V << LEDC_OVF_CNT_CH2_INT_CLR_S)
#define LEDC_OVF_CNT_CH2_INT_CLR_V 0x00000001U
#define LEDC_OVF_CNT_CH2_INT_CLR_S 14
/** LEDC_OVF_CNT_CH3_INT_CLR : WT; bitpos: [15]; default: 0;
* Set this bit to clear the LEDC_OVF_CNT_CH3_INT interrupt.
*/
#define LEDC_OVF_CNT_CH3_INT_CLR (BIT(15))
#define LEDC_OVF_CNT_CH3_INT_CLR_M (LEDC_OVF_CNT_CH3_INT_CLR_V << LEDC_OVF_CNT_CH3_INT_CLR_S)
#define LEDC_OVF_CNT_CH3_INT_CLR_V 0x00000001U
#define LEDC_OVF_CNT_CH3_INT_CLR_S 15
/** LEDC_OVF_CNT_CH4_INT_CLR : WT; bitpos: [16]; default: 0;
* Set this bit to clear the LEDC_OVF_CNT_CH4_INT interrupt.
*/
#define LEDC_OVF_CNT_CH4_INT_CLR (BIT(16))
#define LEDC_OVF_CNT_CH4_INT_CLR_M (LEDC_OVF_CNT_CH4_INT_CLR_V << LEDC_OVF_CNT_CH4_INT_CLR_S)
#define LEDC_OVF_CNT_CH4_INT_CLR_V 0x00000001U
#define LEDC_OVF_CNT_CH4_INT_CLR_S 16
/** LEDC_OVF_CNT_CH5_INT_CLR : WT; bitpos: [17]; default: 0;
* Set this bit to clear the LEDC_OVF_CNT_CH5_INT interrupt.
*/
#define LEDC_OVF_CNT_CH5_INT_CLR (BIT(17))
#define LEDC_OVF_CNT_CH5_INT_CLR_M (LEDC_OVF_CNT_CH5_INT_CLR_V << LEDC_OVF_CNT_CH5_INT_CLR_S)
#define LEDC_OVF_CNT_CH5_INT_CLR_V 0x00000001U
#define LEDC_OVF_CNT_CH5_INT_CLR_S 17
/** LEDC_CH0_GAMMA_WR_REG register
* Ledc ch0 gamma ram write register.
*/
#define LEDC_CH0_GAMMA_WR_REG (DR_REG_LEDC_BASE + 0x100)
/** LEDC_CH0_GAMMA_DUTY_INC : R/W; bitpos: [0]; default: 0;
* Ledc ch0 gamma duty inc of current ram write address.This register is used to
* increase or decrease the duty of output signal on channel 0.
*
* 1: Increase 0: Decrease.
*/
#define LEDC_CH0_GAMMA_DUTY_INC (BIT(0))
#define LEDC_CH0_GAMMA_DUTY_INC_M (LEDC_CH0_GAMMA_DUTY_INC_V << LEDC_CH0_GAMMA_DUTY_INC_S)
#define LEDC_CH0_GAMMA_DUTY_INC_V 0x00000001U
#define LEDC_CH0_GAMMA_DUTY_INC_S 0
/** LEDC_CH0_GAMMA_DUTY_CYCLE : R/W; bitpos: [10:1]; default: 0;
* Ledc ch0 gamma duty cycle of current ram write address.The duty will change every
* LEDC_CH0_GAMMA_DUTY_CYCLE on channel 0.
*/
#define LEDC_CH0_GAMMA_DUTY_CYCLE 0x000003FFU
#define LEDC_CH0_GAMMA_DUTY_CYCLE_M (LEDC_CH0_GAMMA_DUTY_CYCLE_V << LEDC_CH0_GAMMA_DUTY_CYCLE_S)
#define LEDC_CH0_GAMMA_DUTY_CYCLE_V 0x000003FFU
#define LEDC_CH0_GAMMA_DUTY_CYCLE_S 1
/** LEDC_CH0_GAMMA_SCALE : R/W; bitpos: [20:11]; default: 0;
* Ledc ch0 gamma scale of current ram write address.This register is used to
* configure the changing step scale of duty on channel 0.
*/
#define LEDC_CH0_GAMMA_SCALE 0x000003FFU
#define LEDC_CH0_GAMMA_SCALE_M (LEDC_CH0_GAMMA_SCALE_V << LEDC_CH0_GAMMA_SCALE_S)
#define LEDC_CH0_GAMMA_SCALE_V 0x000003FFU
#define LEDC_CH0_GAMMA_SCALE_S 11
/** LEDC_CH0_GAMMA_DUTY_NUM : R/W; bitpos: [30:21]; default: 0;
* Ledc ch0 gamma duty num of current ram write address.This register is used to
* control the number of times the duty cycle will be changed.
*/
#define LEDC_CH0_GAMMA_DUTY_NUM 0x000003FFU
#define LEDC_CH0_GAMMA_DUTY_NUM_M (LEDC_CH0_GAMMA_DUTY_NUM_V << LEDC_CH0_GAMMA_DUTY_NUM_S)
#define LEDC_CH0_GAMMA_DUTY_NUM_V 0x000003FFU
#define LEDC_CH0_GAMMA_DUTY_NUM_S 21
/** LEDC_CH0_GAMMA_WR_ADDR_REG register
* Ledc ch0 gamma ram write address register.
*/
#define LEDC_CH0_GAMMA_WR_ADDR_REG (DR_REG_LEDC_BASE + 0x104)
/** LEDC_CH0_GAMMA_WR_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch0 gamma ram write address.
*/
#define LEDC_CH0_GAMMA_WR_ADDR 0x0000000FU
#define LEDC_CH0_GAMMA_WR_ADDR_M (LEDC_CH0_GAMMA_WR_ADDR_V << LEDC_CH0_GAMMA_WR_ADDR_S)
#define LEDC_CH0_GAMMA_WR_ADDR_V 0x0000000FU
#define LEDC_CH0_GAMMA_WR_ADDR_S 0
/** LEDC_CH0_GAMMA_RD_ADDR_REG register
* Ledc ch0 gamma ram read address register.
*/
#define LEDC_CH0_GAMMA_RD_ADDR_REG (DR_REG_LEDC_BASE + 0x108)
/** LEDC_CH0_GAMMA_RD_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch0 gamma ram read address.
*/
#define LEDC_CH0_GAMMA_RD_ADDR 0x0000000FU
#define LEDC_CH0_GAMMA_RD_ADDR_M (LEDC_CH0_GAMMA_RD_ADDR_V << LEDC_CH0_GAMMA_RD_ADDR_S)
#define LEDC_CH0_GAMMA_RD_ADDR_V 0x0000000FU
#define LEDC_CH0_GAMMA_RD_ADDR_S 0
/** LEDC_CH0_GAMMA_RD_DATA_REG register
* Ledc ch0 gamma ram read data register.
*/
#define LEDC_CH0_GAMMA_RD_DATA_REG (DR_REG_LEDC_BASE + 0x10c)
/** LEDC_CH0_GAMMA_RD_DATA : RO; bitpos: [30:0]; default: 0;
* Ledc ch0 gamma ram read data.
*/
#define LEDC_CH0_GAMMA_RD_DATA 0x7FFFFFFFU
#define LEDC_CH0_GAMMA_RD_DATA_M (LEDC_CH0_GAMMA_RD_DATA_V << LEDC_CH0_GAMMA_RD_DATA_S)
#define LEDC_CH0_GAMMA_RD_DATA_V 0x7FFFFFFFU
#define LEDC_CH0_GAMMA_RD_DATA_S 0
/** LEDC_CH1_GAMMA_WR_REG register
* Ledc ch1 gamma ram write register.
*/
#define LEDC_CH1_GAMMA_WR_REG (DR_REG_LEDC_BASE + 0x110)
/** LEDC_CH1_GAMMA_DUTY_INC : R/W; bitpos: [0]; default: 0;
* Ledc ch1 gamma duty inc of current ram write address.This register is used to
* increase or decrease the duty of output signal on channel 1.
*
* 1: Increase 0: Decrease.
*/
#define LEDC_CH1_GAMMA_DUTY_INC (BIT(0))
#define LEDC_CH1_GAMMA_DUTY_INC_M (LEDC_CH1_GAMMA_DUTY_INC_V << LEDC_CH1_GAMMA_DUTY_INC_S)
#define LEDC_CH1_GAMMA_DUTY_INC_V 0x00000001U
#define LEDC_CH1_GAMMA_DUTY_INC_S 0
/** LEDC_CH1_GAMMA_DUTY_CYCLE : R/W; bitpos: [10:1]; default: 0;
* Ledc ch1 gamma duty cycle of current ram write address.The duty will change every
* LEDC_CH1_GAMMA_DUTY_CYCLE on channel 1.
*/
#define LEDC_CH1_GAMMA_DUTY_CYCLE 0x000003FFU
#define LEDC_CH1_GAMMA_DUTY_CYCLE_M (LEDC_CH1_GAMMA_DUTY_CYCLE_V << LEDC_CH1_GAMMA_DUTY_CYCLE_S)
#define LEDC_CH1_GAMMA_DUTY_CYCLE_V 0x000003FFU
#define LEDC_CH1_GAMMA_DUTY_CYCLE_S 1
/** LEDC_CH1_GAMMA_SCALE : R/W; bitpos: [20:11]; default: 0;
* Ledc ch1 gamma scale of current ram write address.This register is used to
* configure the changing step scale of duty on channel 1.
*/
#define LEDC_CH1_GAMMA_SCALE 0x000003FFU
#define LEDC_CH1_GAMMA_SCALE_M (LEDC_CH1_GAMMA_SCALE_V << LEDC_CH1_GAMMA_SCALE_S)
#define LEDC_CH1_GAMMA_SCALE_V 0x000003FFU
#define LEDC_CH1_GAMMA_SCALE_S 11
/** LEDC_CH1_GAMMA_DUTY_NUM : R/W; bitpos: [30:21]; default: 0;
* Ledc ch1 gamma duty num of current ram write address.This register is used to
* control the number of times the duty cycle will be changed.
*/
#define LEDC_CH1_GAMMA_DUTY_NUM 0x000003FFU
#define LEDC_CH1_GAMMA_DUTY_NUM_M (LEDC_CH1_GAMMA_DUTY_NUM_V << LEDC_CH1_GAMMA_DUTY_NUM_S)
#define LEDC_CH1_GAMMA_DUTY_NUM_V 0x000003FFU
#define LEDC_CH1_GAMMA_DUTY_NUM_S 21
/** LEDC_CH1_GAMMA_WR_ADDR_REG register
* Ledc ch1 gamma ram write address register.
*/
#define LEDC_CH1_GAMMA_WR_ADDR_REG (DR_REG_LEDC_BASE + 0x114)
/** LEDC_CH1_GAMMA_WR_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch1 gamma ram write address.
*/
#define LEDC_CH1_GAMMA_WR_ADDR 0x0000000FU
#define LEDC_CH1_GAMMA_WR_ADDR_M (LEDC_CH1_GAMMA_WR_ADDR_V << LEDC_CH1_GAMMA_WR_ADDR_S)
#define LEDC_CH1_GAMMA_WR_ADDR_V 0x0000000FU
#define LEDC_CH1_GAMMA_WR_ADDR_S 0
/** LEDC_CH1_GAMMA_RD_ADDR_REG register
* Ledc ch1 gamma ram read address register.
*/
#define LEDC_CH1_GAMMA_RD_ADDR_REG (DR_REG_LEDC_BASE + 0x118)
/** LEDC_CH1_GAMMA_RD_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch1 gamma ram read address.
*/
#define LEDC_CH1_GAMMA_RD_ADDR 0x0000000FU
#define LEDC_CH1_GAMMA_RD_ADDR_M (LEDC_CH1_GAMMA_RD_ADDR_V << LEDC_CH1_GAMMA_RD_ADDR_S)
#define LEDC_CH1_GAMMA_RD_ADDR_V 0x0000000FU
#define LEDC_CH1_GAMMA_RD_ADDR_S 0
/** LEDC_CH1_GAMMA_RD_DATA_REG register
* Ledc ch1 gamma ram read data register.
*/
#define LEDC_CH1_GAMMA_RD_DATA_REG (DR_REG_LEDC_BASE + 0x11c)
/** LEDC_CH1_GAMMA_RD_DATA : RO; bitpos: [30:0]; default: 0;
* Ledc ch1 gamma ram read data.
*/
#define LEDC_CH1_GAMMA_RD_DATA 0x7FFFFFFFU
#define LEDC_CH1_GAMMA_RD_DATA_M (LEDC_CH1_GAMMA_RD_DATA_V << LEDC_CH1_GAMMA_RD_DATA_S)
#define LEDC_CH1_GAMMA_RD_DATA_V 0x7FFFFFFFU
#define LEDC_CH1_GAMMA_RD_DATA_S 0
/** LEDC_CH2_GAMMA_WR_REG register
* Ledc ch2 gamma ram write register.
*/
#define LEDC_CH2_GAMMA_WR_REG (DR_REG_LEDC_BASE + 0x120)
/** LEDC_CH2_GAMMA_DUTY_INC : R/W; bitpos: [0]; default: 0;
* Ledc ch2 gamma duty inc of current ram write address.This register is used to
* increase or decrease the duty of output signal on channel 2.
*
* 1: Increase 0: Decrease.
*/
#define LEDC_CH2_GAMMA_DUTY_INC (BIT(0))
#define LEDC_CH2_GAMMA_DUTY_INC_M (LEDC_CH2_GAMMA_DUTY_INC_V << LEDC_CH2_GAMMA_DUTY_INC_S)
#define LEDC_CH2_GAMMA_DUTY_INC_V 0x00000001U
#define LEDC_CH2_GAMMA_DUTY_INC_S 0
/** LEDC_CH2_GAMMA_DUTY_CYCLE : R/W; bitpos: [10:1]; default: 0;
* Ledc ch2 gamma duty cycle of current ram write address.The duty will change every
* LEDC_CH2_GAMMA_DUTY_CYCLE on channel 2.
*/
#define LEDC_CH2_GAMMA_DUTY_CYCLE 0x000003FFU
#define LEDC_CH2_GAMMA_DUTY_CYCLE_M (LEDC_CH2_GAMMA_DUTY_CYCLE_V << LEDC_CH2_GAMMA_DUTY_CYCLE_S)
#define LEDC_CH2_GAMMA_DUTY_CYCLE_V 0x000003FFU
#define LEDC_CH2_GAMMA_DUTY_CYCLE_S 1
/** LEDC_CH2_GAMMA_SCALE : R/W; bitpos: [20:11]; default: 0;
* Ledc ch2 gamma scale of current ram write address.This register is used to
* configure the changing step scale of duty on channel 2.
*/
#define LEDC_CH2_GAMMA_SCALE 0x000003FFU
#define LEDC_CH2_GAMMA_SCALE_M (LEDC_CH2_GAMMA_SCALE_V << LEDC_CH2_GAMMA_SCALE_S)
#define LEDC_CH2_GAMMA_SCALE_V 0x000003FFU
#define LEDC_CH2_GAMMA_SCALE_S 11
/** LEDC_CH2_GAMMA_DUTY_NUM : R/W; bitpos: [30:21]; default: 0;
* Ledc ch2 gamma duty num of current ram write address.This register is used to
* control the number of times the duty cycle will be changed.
*/
#define LEDC_CH2_GAMMA_DUTY_NUM 0x000003FFU
#define LEDC_CH2_GAMMA_DUTY_NUM_M (LEDC_CH2_GAMMA_DUTY_NUM_V << LEDC_CH2_GAMMA_DUTY_NUM_S)
#define LEDC_CH2_GAMMA_DUTY_NUM_V 0x000003FFU
#define LEDC_CH2_GAMMA_DUTY_NUM_S 21
/** LEDC_CH2_GAMMA_WR_ADDR_REG register
* Ledc ch2 gamma ram write address register.
*/
#define LEDC_CH2_GAMMA_WR_ADDR_REG (DR_REG_LEDC_BASE + 0x124)
/** LEDC_CH2_GAMMA_WR_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch2 gamma ram write address.
*/
#define LEDC_CH2_GAMMA_WR_ADDR 0x0000000FU
#define LEDC_CH2_GAMMA_WR_ADDR_M (LEDC_CH2_GAMMA_WR_ADDR_V << LEDC_CH2_GAMMA_WR_ADDR_S)
#define LEDC_CH2_GAMMA_WR_ADDR_V 0x0000000FU
#define LEDC_CH2_GAMMA_WR_ADDR_S 0
/** LEDC_CH2_GAMMA_RD_ADDR_REG register
* Ledc ch2 gamma ram read address register.
*/
#define LEDC_CH2_GAMMA_RD_ADDR_REG (DR_REG_LEDC_BASE + 0x128)
/** LEDC_CH2_GAMMA_RD_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch2 gamma ram read address.
*/
#define LEDC_CH2_GAMMA_RD_ADDR 0x0000000FU
#define LEDC_CH2_GAMMA_RD_ADDR_M (LEDC_CH2_GAMMA_RD_ADDR_V << LEDC_CH2_GAMMA_RD_ADDR_S)
#define LEDC_CH2_GAMMA_RD_ADDR_V 0x0000000FU
#define LEDC_CH2_GAMMA_RD_ADDR_S 0
/** LEDC_CH2_GAMMA_RD_DATA_REG register
* Ledc ch2 gamma ram read data register.
*/
#define LEDC_CH2_GAMMA_RD_DATA_REG (DR_REG_LEDC_BASE + 0x12c)
/** LEDC_CH2_GAMMA_RD_DATA : RO; bitpos: [30:0]; default: 0;
* Ledc ch2 gamma ram read data.
*/
#define LEDC_CH2_GAMMA_RD_DATA 0x7FFFFFFFU
#define LEDC_CH2_GAMMA_RD_DATA_M (LEDC_CH2_GAMMA_RD_DATA_V << LEDC_CH2_GAMMA_RD_DATA_S)
#define LEDC_CH2_GAMMA_RD_DATA_V 0x7FFFFFFFU
#define LEDC_CH2_GAMMA_RD_DATA_S 0
/** LEDC_CH3_GAMMA_WR_REG register
* Ledc ch3 gamma ram write register.
*/
#define LEDC_CH3_GAMMA_WR_REG (DR_REG_LEDC_BASE + 0x130)
/** LEDC_CH3_GAMMA_DUTY_INC : R/W; bitpos: [0]; default: 0;
* Ledc ch3 gamma duty inc of current ram write address.This register is used to
* increase or decrease the duty of output signal on channel 3.
*
* 1: Increase 0: Decrease.
*/
#define LEDC_CH3_GAMMA_DUTY_INC (BIT(0))
#define LEDC_CH3_GAMMA_DUTY_INC_M (LEDC_CH3_GAMMA_DUTY_INC_V << LEDC_CH3_GAMMA_DUTY_INC_S)
#define LEDC_CH3_GAMMA_DUTY_INC_V 0x00000001U
#define LEDC_CH3_GAMMA_DUTY_INC_S 0
/** LEDC_CH3_GAMMA_DUTY_CYCLE : R/W; bitpos: [10:1]; default: 0;
* Ledc ch3 gamma duty cycle of current ram write address.The duty will change every
* LEDC_CH3_GAMMA_DUTY_CYCLE on channel 3.
*/
#define LEDC_CH3_GAMMA_DUTY_CYCLE 0x000003FFU
#define LEDC_CH3_GAMMA_DUTY_CYCLE_M (LEDC_CH3_GAMMA_DUTY_CYCLE_V << LEDC_CH3_GAMMA_DUTY_CYCLE_S)
#define LEDC_CH3_GAMMA_DUTY_CYCLE_V 0x000003FFU
#define LEDC_CH3_GAMMA_DUTY_CYCLE_S 1
/** LEDC_CH3_GAMMA_SCALE : R/W; bitpos: [20:11]; default: 0;
* Ledc ch3 gamma scale of current ram write address.This register is used to
* configure the changing step scale of duty on channel 3.
*/
#define LEDC_CH3_GAMMA_SCALE 0x000003FFU
#define LEDC_CH3_GAMMA_SCALE_M (LEDC_CH3_GAMMA_SCALE_V << LEDC_CH3_GAMMA_SCALE_S)
#define LEDC_CH3_GAMMA_SCALE_V 0x000003FFU
#define LEDC_CH3_GAMMA_SCALE_S 11
/** LEDC_CH3_GAMMA_DUTY_NUM : R/W; bitpos: [30:21]; default: 0;
* Ledc ch3 gamma duty num of current ram write address.This register is used to
* control the number of times the duty cycle will be changed.
*/
#define LEDC_CH3_GAMMA_DUTY_NUM 0x000003FFU
#define LEDC_CH3_GAMMA_DUTY_NUM_M (LEDC_CH3_GAMMA_DUTY_NUM_V << LEDC_CH3_GAMMA_DUTY_NUM_S)
#define LEDC_CH3_GAMMA_DUTY_NUM_V 0x000003FFU
#define LEDC_CH3_GAMMA_DUTY_NUM_S 21
/** LEDC_CH3_GAMMA_WR_ADDR_REG register
* Ledc ch3 gamma ram write address register.
*/
#define LEDC_CH3_GAMMA_WR_ADDR_REG (DR_REG_LEDC_BASE + 0x134)
/** LEDC_CH3_GAMMA_WR_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch3 gamma ram write address.
*/
#define LEDC_CH3_GAMMA_WR_ADDR 0x0000000FU
#define LEDC_CH3_GAMMA_WR_ADDR_M (LEDC_CH3_GAMMA_WR_ADDR_V << LEDC_CH3_GAMMA_WR_ADDR_S)
#define LEDC_CH3_GAMMA_WR_ADDR_V 0x0000000FU
#define LEDC_CH3_GAMMA_WR_ADDR_S 0
/** LEDC_CH3_GAMMA_RD_ADDR_REG register
* Ledc ch3 gamma ram read address register.
*/
#define LEDC_CH3_GAMMA_RD_ADDR_REG (DR_REG_LEDC_BASE + 0x138)
/** LEDC_CH3_GAMMA_RD_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch3 gamma ram read address.
*/
#define LEDC_CH3_GAMMA_RD_ADDR 0x0000000FU
#define LEDC_CH3_GAMMA_RD_ADDR_M (LEDC_CH3_GAMMA_RD_ADDR_V << LEDC_CH3_GAMMA_RD_ADDR_S)
#define LEDC_CH3_GAMMA_RD_ADDR_V 0x0000000FU
#define LEDC_CH3_GAMMA_RD_ADDR_S 0
/** LEDC_CH3_GAMMA_RD_DATA_REG register
* Ledc ch3 gamma ram read data register.
*/
#define LEDC_CH3_GAMMA_RD_DATA_REG (DR_REG_LEDC_BASE + 0x13c)
/** LEDC_CH3_GAMMA_RD_DATA : RO; bitpos: [30:0]; default: 0;
* Ledc ch3 gamma ram read data.
*/
#define LEDC_CH3_GAMMA_RD_DATA 0x7FFFFFFFU
#define LEDC_CH3_GAMMA_RD_DATA_M (LEDC_CH3_GAMMA_RD_DATA_V << LEDC_CH3_GAMMA_RD_DATA_S)
#define LEDC_CH3_GAMMA_RD_DATA_V 0x7FFFFFFFU
#define LEDC_CH3_GAMMA_RD_DATA_S 0
/** LEDC_CH4_GAMMA_WR_REG register
* Ledc ch4 gamma ram write register.
*/
#define LEDC_CH4_GAMMA_WR_REG (DR_REG_LEDC_BASE + 0x140)
/** LEDC_CH4_GAMMA_DUTY_INC : R/W; bitpos: [0]; default: 0;
* Ledc ch4 gamma duty inc of current ram write address.This register is used to
* increase or decrease the duty of output signal on channel 4.
*
* 1: Increase 0: Decrease.
*/
#define LEDC_CH4_GAMMA_DUTY_INC (BIT(0))
#define LEDC_CH4_GAMMA_DUTY_INC_M (LEDC_CH4_GAMMA_DUTY_INC_V << LEDC_CH4_GAMMA_DUTY_INC_S)
#define LEDC_CH4_GAMMA_DUTY_INC_V 0x00000001U
#define LEDC_CH4_GAMMA_DUTY_INC_S 0
/** LEDC_CH4_GAMMA_DUTY_CYCLE : R/W; bitpos: [10:1]; default: 0;
* Ledc ch4 gamma duty cycle of current ram write address.The duty will change every
* LEDC_CH4_GAMMA_DUTY_CYCLE on channel 4.
*/
#define LEDC_CH4_GAMMA_DUTY_CYCLE 0x000003FFU
#define LEDC_CH4_GAMMA_DUTY_CYCLE_M (LEDC_CH4_GAMMA_DUTY_CYCLE_V << LEDC_CH4_GAMMA_DUTY_CYCLE_S)
#define LEDC_CH4_GAMMA_DUTY_CYCLE_V 0x000003FFU
#define LEDC_CH4_GAMMA_DUTY_CYCLE_S 1
/** LEDC_CH4_GAMMA_SCALE : R/W; bitpos: [20:11]; default: 0;
* Ledc ch4 gamma scale of current ram write address.This register is used to
* configure the changing step scale of duty on channel 4.
*/
#define LEDC_CH4_GAMMA_SCALE 0x000003FFU
#define LEDC_CH4_GAMMA_SCALE_M (LEDC_CH4_GAMMA_SCALE_V << LEDC_CH4_GAMMA_SCALE_S)
#define LEDC_CH4_GAMMA_SCALE_V 0x000003FFU
#define LEDC_CH4_GAMMA_SCALE_S 11
/** LEDC_CH4_GAMMA_DUTY_NUM : R/W; bitpos: [30:21]; default: 0;
* Ledc ch4 gamma duty num of current ram write address.This register is used to
* control the number of times the duty cycle will be changed.
*/
#define LEDC_CH4_GAMMA_DUTY_NUM 0x000003FFU
#define LEDC_CH4_GAMMA_DUTY_NUM_M (LEDC_CH4_GAMMA_DUTY_NUM_V << LEDC_CH4_GAMMA_DUTY_NUM_S)
#define LEDC_CH4_GAMMA_DUTY_NUM_V 0x000003FFU
#define LEDC_CH4_GAMMA_DUTY_NUM_S 21
/** LEDC_CH4_GAMMA_WR_ADDR_REG register
* Ledc ch4 gamma ram write address register.
*/
#define LEDC_CH4_GAMMA_WR_ADDR_REG (DR_REG_LEDC_BASE + 0x144)
/** LEDC_CH4_GAMMA_WR_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch4 gamma ram write address.
*/
#define LEDC_CH4_GAMMA_WR_ADDR 0x0000000FU
#define LEDC_CH4_GAMMA_WR_ADDR_M (LEDC_CH4_GAMMA_WR_ADDR_V << LEDC_CH4_GAMMA_WR_ADDR_S)
#define LEDC_CH4_GAMMA_WR_ADDR_V 0x0000000FU
#define LEDC_CH4_GAMMA_WR_ADDR_S 0
/** LEDC_CH4_GAMMA_RD_ADDR_REG register
* Ledc ch4 gamma ram read address register.
*/
#define LEDC_CH4_GAMMA_RD_ADDR_REG (DR_REG_LEDC_BASE + 0x148)
/** LEDC_CH4_GAMMA_RD_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch4 gamma ram read address.
*/
#define LEDC_CH4_GAMMA_RD_ADDR 0x0000000FU
#define LEDC_CH4_GAMMA_RD_ADDR_M (LEDC_CH4_GAMMA_RD_ADDR_V << LEDC_CH4_GAMMA_RD_ADDR_S)
#define LEDC_CH4_GAMMA_RD_ADDR_V 0x0000000FU
#define LEDC_CH4_GAMMA_RD_ADDR_S 0
/** LEDC_CH4_GAMMA_RD_DATA_REG register
* Ledc ch4 gamma ram read data register.
*/
#define LEDC_CH4_GAMMA_RD_DATA_REG (DR_REG_LEDC_BASE + 0x14c)
/** LEDC_CH4_GAMMA_RD_DATA : RO; bitpos: [30:0]; default: 0;
* Ledc ch4 gamma ram read data.
*/
#define LEDC_CH4_GAMMA_RD_DATA 0x7FFFFFFFU
#define LEDC_CH4_GAMMA_RD_DATA_M (LEDC_CH4_GAMMA_RD_DATA_V << LEDC_CH4_GAMMA_RD_DATA_S)
#define LEDC_CH4_GAMMA_RD_DATA_V 0x7FFFFFFFU
#define LEDC_CH4_GAMMA_RD_DATA_S 0
/** LEDC_CH5_GAMMA_WR_REG register
* Ledc ch5 gamma ram write register.
*/
#define LEDC_CH5_GAMMA_WR_REG (DR_REG_LEDC_BASE + 0x150)
/** LEDC_CH5_GAMMA_DUTY_INC : R/W; bitpos: [0]; default: 0;
* Ledc ch5 gamma duty inc of current ram write address.This register is used to
* increase or decrease the duty of output signal on channel 5.
*
* 1: Increase 0: Decrease.
*/
#define LEDC_CH5_GAMMA_DUTY_INC (BIT(0))
#define LEDC_CH5_GAMMA_DUTY_INC_M (LEDC_CH5_GAMMA_DUTY_INC_V << LEDC_CH5_GAMMA_DUTY_INC_S)
#define LEDC_CH5_GAMMA_DUTY_INC_V 0x00000001U
#define LEDC_CH5_GAMMA_DUTY_INC_S 0
/** LEDC_CH5_GAMMA_DUTY_CYCLE : R/W; bitpos: [10:1]; default: 0;
* Ledc ch5 gamma duty cycle of current ram write address.The duty will change every
* LEDC_CH5_GAMMA_DUTY_CYCLE on channel 5.
*/
#define LEDC_CH5_GAMMA_DUTY_CYCLE 0x000003FFU
#define LEDC_CH5_GAMMA_DUTY_CYCLE_M (LEDC_CH5_GAMMA_DUTY_CYCLE_V << LEDC_CH5_GAMMA_DUTY_CYCLE_S)
#define LEDC_CH5_GAMMA_DUTY_CYCLE_V 0x000003FFU
#define LEDC_CH5_GAMMA_DUTY_CYCLE_S 1
/** LEDC_CH5_GAMMA_SCALE : R/W; bitpos: [20:11]; default: 0;
* Ledc ch5 gamma scale of current ram write address.This register is used to
* configure the changing step scale of duty on channel 5.
*/
#define LEDC_CH5_GAMMA_SCALE 0x000003FFU
#define LEDC_CH5_GAMMA_SCALE_M (LEDC_CH5_GAMMA_SCALE_V << LEDC_CH5_GAMMA_SCALE_S)
#define LEDC_CH5_GAMMA_SCALE_V 0x000003FFU
#define LEDC_CH5_GAMMA_SCALE_S 11
/** LEDC_CH5_GAMMA_DUTY_NUM : R/W; bitpos: [30:21]; default: 0;
* Ledc ch5 gamma duty num of current ram write address.This register is used to
* control the number of times the duty cycle will be changed.
*/
#define LEDC_CH5_GAMMA_DUTY_NUM 0x000003FFU
#define LEDC_CH5_GAMMA_DUTY_NUM_M (LEDC_CH5_GAMMA_DUTY_NUM_V << LEDC_CH5_GAMMA_DUTY_NUM_S)
#define LEDC_CH5_GAMMA_DUTY_NUM_V 0x000003FFU
#define LEDC_CH5_GAMMA_DUTY_NUM_S 21
/** LEDC_CH5_GAMMA_WR_ADDR_REG register
* Ledc ch5 gamma ram write address register.
*/
#define LEDC_CH5_GAMMA_WR_ADDR_REG (DR_REG_LEDC_BASE + 0x154)
/** LEDC_CH5_GAMMA_WR_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch5 gamma ram write address.
*/
#define LEDC_CH5_GAMMA_WR_ADDR 0x0000000FU
#define LEDC_CH5_GAMMA_WR_ADDR_M (LEDC_CH5_GAMMA_WR_ADDR_V << LEDC_CH5_GAMMA_WR_ADDR_S)
#define LEDC_CH5_GAMMA_WR_ADDR_V 0x0000000FU
#define LEDC_CH5_GAMMA_WR_ADDR_S 0
/** LEDC_CH5_GAMMA_RD_ADDR_REG register
* Ledc ch5 gamma ram read address register.
*/
#define LEDC_CH5_GAMMA_RD_ADDR_REG (DR_REG_LEDC_BASE + 0x158)
/** LEDC_CH5_GAMMA_RD_ADDR : R/W; bitpos: [3:0]; default: 0;
* Ledc ch5 gamma ram read address.
*/
#define LEDC_CH5_GAMMA_RD_ADDR 0x0000000FU
#define LEDC_CH5_GAMMA_RD_ADDR_M (LEDC_CH5_GAMMA_RD_ADDR_V << LEDC_CH5_GAMMA_RD_ADDR_S)
#define LEDC_CH5_GAMMA_RD_ADDR_V 0x0000000FU
#define LEDC_CH5_GAMMA_RD_ADDR_S 0
/** LEDC_CH5_GAMMA_RD_DATA_REG register
* Ledc ch5 gamma ram read data register.
*/
#define LEDC_CH5_GAMMA_RD_DATA_REG (DR_REG_LEDC_BASE + 0x15c)
/** LEDC_CH5_GAMMA_RD_DATA : RO; bitpos: [30:0]; default: 0;
* Ledc ch5 gamma ram read data.
*/
#define LEDC_CH5_GAMMA_RD_DATA 0x7FFFFFFFU
#define LEDC_CH5_GAMMA_RD_DATA_M (LEDC_CH5_GAMMA_RD_DATA_V << LEDC_CH5_GAMMA_RD_DATA_S)
#define LEDC_CH5_GAMMA_RD_DATA_V 0x7FFFFFFFU
#define LEDC_CH5_GAMMA_RD_DATA_S 0
/** LEDC_CH0_GAMMA_CONF_REG register
* Ledc ch0 gamma config register.
*/
#define LEDC_CH0_GAMMA_CONF_REG (DR_REG_LEDC_BASE + 0x180)
/** LEDC_CH0_GAMMA_ENTRY_NUM : R/W; bitpos: [4:0]; default: 0;
* Ledc ch0 gamma entry num.
*/
#define LEDC_CH0_GAMMA_ENTRY_NUM 0x0000001FU
#define LEDC_CH0_GAMMA_ENTRY_NUM_M (LEDC_CH0_GAMMA_ENTRY_NUM_V << LEDC_CH0_GAMMA_ENTRY_NUM_S)
#define LEDC_CH0_GAMMA_ENTRY_NUM_V 0x0000001FU
#define LEDC_CH0_GAMMA_ENTRY_NUM_S 0
/** LEDC_CH0_GAMMA_PAUSE : WT; bitpos: [5]; default: 0;
* Ledc ch0 gamma pause, write 1 to pause.
*/
#define LEDC_CH0_GAMMA_PAUSE (BIT(5))
#define LEDC_CH0_GAMMA_PAUSE_M (LEDC_CH0_GAMMA_PAUSE_V << LEDC_CH0_GAMMA_PAUSE_S)
#define LEDC_CH0_GAMMA_PAUSE_V 0x00000001U
#define LEDC_CH0_GAMMA_PAUSE_S 5
/** LEDC_CH0_GAMMA_RESUME : WT; bitpos: [6]; default: 0;
* Ledc ch0 gamma resume, write 1 to resume.
*/
#define LEDC_CH0_GAMMA_RESUME (BIT(6))
#define LEDC_CH0_GAMMA_RESUME_M (LEDC_CH0_GAMMA_RESUME_V << LEDC_CH0_GAMMA_RESUME_S)
#define LEDC_CH0_GAMMA_RESUME_V 0x00000001U
#define LEDC_CH0_GAMMA_RESUME_S 6
/** LEDC_CH1_GAMMA_CONF_REG register
* Ledc ch1 gamma config register.
*/
#define LEDC_CH1_GAMMA_CONF_REG (DR_REG_LEDC_BASE + 0x184)
/** LEDC_CH1_GAMMA_ENTRY_NUM : R/W; bitpos: [4:0]; default: 0;
* Ledc ch1 gamma entry num.
*/
#define LEDC_CH1_GAMMA_ENTRY_NUM 0x0000001FU
#define LEDC_CH1_GAMMA_ENTRY_NUM_M (LEDC_CH1_GAMMA_ENTRY_NUM_V << LEDC_CH1_GAMMA_ENTRY_NUM_S)
#define LEDC_CH1_GAMMA_ENTRY_NUM_V 0x0000001FU
#define LEDC_CH1_GAMMA_ENTRY_NUM_S 0
/** LEDC_CH1_GAMMA_PAUSE : WT; bitpos: [5]; default: 0;
* Ledc ch1 gamma pause, write 1 to pause.
*/
#define LEDC_CH1_GAMMA_PAUSE (BIT(5))
#define LEDC_CH1_GAMMA_PAUSE_M (LEDC_CH1_GAMMA_PAUSE_V << LEDC_CH1_GAMMA_PAUSE_S)
#define LEDC_CH1_GAMMA_PAUSE_V 0x00000001U
#define LEDC_CH1_GAMMA_PAUSE_S 5
/** LEDC_CH1_GAMMA_RESUME : WT; bitpos: [6]; default: 0;
* Ledc ch1 gamma resume, write 1 to resume.
*/
#define LEDC_CH1_GAMMA_RESUME (BIT(6))
#define LEDC_CH1_GAMMA_RESUME_M (LEDC_CH1_GAMMA_RESUME_V << LEDC_CH1_GAMMA_RESUME_S)
#define LEDC_CH1_GAMMA_RESUME_V 0x00000001U
#define LEDC_CH1_GAMMA_RESUME_S 6
/** LEDC_CH2_GAMMA_CONF_REG register
* Ledc ch2 gamma config register.
*/
#define LEDC_CH2_GAMMA_CONF_REG (DR_REG_LEDC_BASE + 0x188)
/** LEDC_CH2_GAMMA_ENTRY_NUM : R/W; bitpos: [4:0]; default: 0;
* Ledc ch2 gamma entry num.
*/
#define LEDC_CH2_GAMMA_ENTRY_NUM 0x0000001FU
#define LEDC_CH2_GAMMA_ENTRY_NUM_M (LEDC_CH2_GAMMA_ENTRY_NUM_V << LEDC_CH2_GAMMA_ENTRY_NUM_S)
#define LEDC_CH2_GAMMA_ENTRY_NUM_V 0x0000001FU
#define LEDC_CH2_GAMMA_ENTRY_NUM_S 0
/** LEDC_CH2_GAMMA_PAUSE : WT; bitpos: [5]; default: 0;
* Ledc ch2 gamma pause, write 1 to pause.
*/
#define LEDC_CH2_GAMMA_PAUSE (BIT(5))
#define LEDC_CH2_GAMMA_PAUSE_M (LEDC_CH2_GAMMA_PAUSE_V << LEDC_CH2_GAMMA_PAUSE_S)
#define LEDC_CH2_GAMMA_PAUSE_V 0x00000001U
#define LEDC_CH2_GAMMA_PAUSE_S 5
/** LEDC_CH2_GAMMA_RESUME : WT; bitpos: [6]; default: 0;
* Ledc ch2 gamma resume, write 1 to resume.
*/
#define LEDC_CH2_GAMMA_RESUME (BIT(6))
#define LEDC_CH2_GAMMA_RESUME_M (LEDC_CH2_GAMMA_RESUME_V << LEDC_CH2_GAMMA_RESUME_S)
#define LEDC_CH2_GAMMA_RESUME_V 0x00000001U
#define LEDC_CH2_GAMMA_RESUME_S 6
/** LEDC_CH3_GAMMA_CONF_REG register
* Ledc ch3 gamma config register.
*/
#define LEDC_CH3_GAMMA_CONF_REG (DR_REG_LEDC_BASE + 0x18c)
/** LEDC_CH3_GAMMA_ENTRY_NUM : R/W; bitpos: [4:0]; default: 0;
* Ledc ch3 gamma entry num.
*/
#define LEDC_CH3_GAMMA_ENTRY_NUM 0x0000001FU
#define LEDC_CH3_GAMMA_ENTRY_NUM_M (LEDC_CH3_GAMMA_ENTRY_NUM_V << LEDC_CH3_GAMMA_ENTRY_NUM_S)
#define LEDC_CH3_GAMMA_ENTRY_NUM_V 0x0000001FU
#define LEDC_CH3_GAMMA_ENTRY_NUM_S 0
/** LEDC_CH3_GAMMA_PAUSE : WT; bitpos: [5]; default: 0;
* Ledc ch3 gamma pause, write 1 to pause.
*/
#define LEDC_CH3_GAMMA_PAUSE (BIT(5))
#define LEDC_CH3_GAMMA_PAUSE_M (LEDC_CH3_GAMMA_PAUSE_V << LEDC_CH3_GAMMA_PAUSE_S)
#define LEDC_CH3_GAMMA_PAUSE_V 0x00000001U
#define LEDC_CH3_GAMMA_PAUSE_S 5
/** LEDC_CH3_GAMMA_RESUME : WT; bitpos: [6]; default: 0;
* Ledc ch3 gamma resume, write 1 to resume.
*/
#define LEDC_CH3_GAMMA_RESUME (BIT(6))
#define LEDC_CH3_GAMMA_RESUME_M (LEDC_CH3_GAMMA_RESUME_V << LEDC_CH3_GAMMA_RESUME_S)
#define LEDC_CH3_GAMMA_RESUME_V 0x00000001U
#define LEDC_CH3_GAMMA_RESUME_S 6
/** LEDC_CH4_GAMMA_CONF_REG register
* Ledc ch4 gamma config register.
*/
#define LEDC_CH4_GAMMA_CONF_REG (DR_REG_LEDC_BASE + 0x190)
/** LEDC_CH4_GAMMA_ENTRY_NUM : R/W; bitpos: [4:0]; default: 0;
* Ledc ch4 gamma entry num.
*/
#define LEDC_CH4_GAMMA_ENTRY_NUM 0x0000001FU
#define LEDC_CH4_GAMMA_ENTRY_NUM_M (LEDC_CH4_GAMMA_ENTRY_NUM_V << LEDC_CH4_GAMMA_ENTRY_NUM_S)
#define LEDC_CH4_GAMMA_ENTRY_NUM_V 0x0000001FU
#define LEDC_CH4_GAMMA_ENTRY_NUM_S 0
/** LEDC_CH4_GAMMA_PAUSE : WT; bitpos: [5]; default: 0;
* Ledc ch4 gamma pause, write 1 to pause.
*/
#define LEDC_CH4_GAMMA_PAUSE (BIT(5))
#define LEDC_CH4_GAMMA_PAUSE_M (LEDC_CH4_GAMMA_PAUSE_V << LEDC_CH4_GAMMA_PAUSE_S)
#define LEDC_CH4_GAMMA_PAUSE_V 0x00000001U
#define LEDC_CH4_GAMMA_PAUSE_S 5
/** LEDC_CH4_GAMMA_RESUME : WT; bitpos: [6]; default: 0;
* Ledc ch4 gamma resume, write 1 to resume.
*/
#define LEDC_CH4_GAMMA_RESUME (BIT(6))
#define LEDC_CH4_GAMMA_RESUME_M (LEDC_CH4_GAMMA_RESUME_V << LEDC_CH4_GAMMA_RESUME_S)
#define LEDC_CH4_GAMMA_RESUME_V 0x00000001U
#define LEDC_CH4_GAMMA_RESUME_S 6
/** LEDC_CH5_GAMMA_CONF_REG register
* Ledc ch5 gamma config register.
*/
#define LEDC_CH5_GAMMA_CONF_REG (DR_REG_LEDC_BASE + 0x194)
/** LEDC_CH5_GAMMA_ENTRY_NUM : R/W; bitpos: [4:0]; default: 0;
* Ledc ch5 gamma entry num.
*/
#define LEDC_CH5_GAMMA_ENTRY_NUM 0x0000001FU
#define LEDC_CH5_GAMMA_ENTRY_NUM_M (LEDC_CH5_GAMMA_ENTRY_NUM_V << LEDC_CH5_GAMMA_ENTRY_NUM_S)
#define LEDC_CH5_GAMMA_ENTRY_NUM_V 0x0000001FU
#define LEDC_CH5_GAMMA_ENTRY_NUM_S 0
/** LEDC_CH5_GAMMA_PAUSE : WT; bitpos: [5]; default: 0;
* Ledc ch5 gamma pause, write 1 to pause.
*/
#define LEDC_CH5_GAMMA_PAUSE (BIT(5))
#define LEDC_CH5_GAMMA_PAUSE_M (LEDC_CH5_GAMMA_PAUSE_V << LEDC_CH5_GAMMA_PAUSE_S)
#define LEDC_CH5_GAMMA_PAUSE_V 0x00000001U
#define LEDC_CH5_GAMMA_PAUSE_S 5
/** LEDC_CH5_GAMMA_RESUME : WT; bitpos: [6]; default: 0;
* Ledc ch5 gamma resume, write 1 to resume.
*/
#define LEDC_CH5_GAMMA_RESUME (BIT(6))
#define LEDC_CH5_GAMMA_RESUME_M (LEDC_CH5_GAMMA_RESUME_V << LEDC_CH5_GAMMA_RESUME_S)
#define LEDC_CH5_GAMMA_RESUME_V 0x00000001U
#define LEDC_CH5_GAMMA_RESUME_S 6
/** LEDC_EVT_TASK_EN0_REG register
* Ledc event task enable bit register0.
*/
#define LEDC_EVT_TASK_EN0_REG (DR_REG_LEDC_BASE + 0x1a0)
/** LEDC_EVT_DUTY_CHNG_END_CH0_EN : R/W; bitpos: [0]; default: 0;
* Ledc ch0 duty change end event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_DUTY_CHNG_END_CH0_EN (BIT(0))
#define LEDC_EVT_DUTY_CHNG_END_CH0_EN_M (LEDC_EVT_DUTY_CHNG_END_CH0_EN_V << LEDC_EVT_DUTY_CHNG_END_CH0_EN_S)
#define LEDC_EVT_DUTY_CHNG_END_CH0_EN_V 0x00000001U
#define LEDC_EVT_DUTY_CHNG_END_CH0_EN_S 0
/** LEDC_EVT_DUTY_CHNG_END_CH1_EN : R/W; bitpos: [1]; default: 0;
* Ledc ch1 duty change end event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_DUTY_CHNG_END_CH1_EN (BIT(1))
#define LEDC_EVT_DUTY_CHNG_END_CH1_EN_M (LEDC_EVT_DUTY_CHNG_END_CH1_EN_V << LEDC_EVT_DUTY_CHNG_END_CH1_EN_S)
#define LEDC_EVT_DUTY_CHNG_END_CH1_EN_V 0x00000001U
#define LEDC_EVT_DUTY_CHNG_END_CH1_EN_S 1
/** LEDC_EVT_DUTY_CHNG_END_CH2_EN : R/W; bitpos: [2]; default: 0;
* Ledc ch2 duty change end event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_DUTY_CHNG_END_CH2_EN (BIT(2))
#define LEDC_EVT_DUTY_CHNG_END_CH2_EN_M (LEDC_EVT_DUTY_CHNG_END_CH2_EN_V << LEDC_EVT_DUTY_CHNG_END_CH2_EN_S)
#define LEDC_EVT_DUTY_CHNG_END_CH2_EN_V 0x00000001U
#define LEDC_EVT_DUTY_CHNG_END_CH2_EN_S 2
/** LEDC_EVT_DUTY_CHNG_END_CH3_EN : R/W; bitpos: [3]; default: 0;
* Ledc ch3 duty change end event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_DUTY_CHNG_END_CH3_EN (BIT(3))
#define LEDC_EVT_DUTY_CHNG_END_CH3_EN_M (LEDC_EVT_DUTY_CHNG_END_CH3_EN_V << LEDC_EVT_DUTY_CHNG_END_CH3_EN_S)
#define LEDC_EVT_DUTY_CHNG_END_CH3_EN_V 0x00000001U
#define LEDC_EVT_DUTY_CHNG_END_CH3_EN_S 3
/** LEDC_EVT_DUTY_CHNG_END_CH4_EN : R/W; bitpos: [4]; default: 0;
* Ledc ch4 duty change end event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_DUTY_CHNG_END_CH4_EN (BIT(4))
#define LEDC_EVT_DUTY_CHNG_END_CH4_EN_M (LEDC_EVT_DUTY_CHNG_END_CH4_EN_V << LEDC_EVT_DUTY_CHNG_END_CH4_EN_S)
#define LEDC_EVT_DUTY_CHNG_END_CH4_EN_V 0x00000001U
#define LEDC_EVT_DUTY_CHNG_END_CH4_EN_S 4
/** LEDC_EVT_DUTY_CHNG_END_CH5_EN : R/W; bitpos: [5]; default: 0;
* Ledc ch5 duty change end event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_DUTY_CHNG_END_CH5_EN (BIT(5))
#define LEDC_EVT_DUTY_CHNG_END_CH5_EN_M (LEDC_EVT_DUTY_CHNG_END_CH5_EN_V << LEDC_EVT_DUTY_CHNG_END_CH5_EN_S)
#define LEDC_EVT_DUTY_CHNG_END_CH5_EN_V 0x00000001U
#define LEDC_EVT_DUTY_CHNG_END_CH5_EN_S 5
/** LEDC_EVT_OVF_CNT_PLS_CH0_EN : R/W; bitpos: [8]; default: 0;
* Ledc ch0 overflow count pulse event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_OVF_CNT_PLS_CH0_EN (BIT(8))
#define LEDC_EVT_OVF_CNT_PLS_CH0_EN_M (LEDC_EVT_OVF_CNT_PLS_CH0_EN_V << LEDC_EVT_OVF_CNT_PLS_CH0_EN_S)
#define LEDC_EVT_OVF_CNT_PLS_CH0_EN_V 0x00000001U
#define LEDC_EVT_OVF_CNT_PLS_CH0_EN_S 8
/** LEDC_EVT_OVF_CNT_PLS_CH1_EN : R/W; bitpos: [9]; default: 0;
* Ledc ch1 overflow count pulse event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_OVF_CNT_PLS_CH1_EN (BIT(9))
#define LEDC_EVT_OVF_CNT_PLS_CH1_EN_M (LEDC_EVT_OVF_CNT_PLS_CH1_EN_V << LEDC_EVT_OVF_CNT_PLS_CH1_EN_S)
#define LEDC_EVT_OVF_CNT_PLS_CH1_EN_V 0x00000001U
#define LEDC_EVT_OVF_CNT_PLS_CH1_EN_S 9
/** LEDC_EVT_OVF_CNT_PLS_CH2_EN : R/W; bitpos: [10]; default: 0;
* Ledc ch2 overflow count pulse event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_OVF_CNT_PLS_CH2_EN (BIT(10))
#define LEDC_EVT_OVF_CNT_PLS_CH2_EN_M (LEDC_EVT_OVF_CNT_PLS_CH2_EN_V << LEDC_EVT_OVF_CNT_PLS_CH2_EN_S)
#define LEDC_EVT_OVF_CNT_PLS_CH2_EN_V 0x00000001U
#define LEDC_EVT_OVF_CNT_PLS_CH2_EN_S 10
/** LEDC_EVT_OVF_CNT_PLS_CH3_EN : R/W; bitpos: [11]; default: 0;
* Ledc ch3 overflow count pulse event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_OVF_CNT_PLS_CH3_EN (BIT(11))
#define LEDC_EVT_OVF_CNT_PLS_CH3_EN_M (LEDC_EVT_OVF_CNT_PLS_CH3_EN_V << LEDC_EVT_OVF_CNT_PLS_CH3_EN_S)
#define LEDC_EVT_OVF_CNT_PLS_CH3_EN_V 0x00000001U
#define LEDC_EVT_OVF_CNT_PLS_CH3_EN_S 11
/** LEDC_EVT_OVF_CNT_PLS_CH4_EN : R/W; bitpos: [12]; default: 0;
* Ledc ch4 overflow count pulse event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_OVF_CNT_PLS_CH4_EN (BIT(12))
#define LEDC_EVT_OVF_CNT_PLS_CH4_EN_M (LEDC_EVT_OVF_CNT_PLS_CH4_EN_V << LEDC_EVT_OVF_CNT_PLS_CH4_EN_S)
#define LEDC_EVT_OVF_CNT_PLS_CH4_EN_V 0x00000001U
#define LEDC_EVT_OVF_CNT_PLS_CH4_EN_S 12
/** LEDC_EVT_OVF_CNT_PLS_CH5_EN : R/W; bitpos: [13]; default: 0;
* Ledc ch5 overflow count pulse event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_OVF_CNT_PLS_CH5_EN (BIT(13))
#define LEDC_EVT_OVF_CNT_PLS_CH5_EN_M (LEDC_EVT_OVF_CNT_PLS_CH5_EN_V << LEDC_EVT_OVF_CNT_PLS_CH5_EN_S)
#define LEDC_EVT_OVF_CNT_PLS_CH5_EN_V 0x00000001U
#define LEDC_EVT_OVF_CNT_PLS_CH5_EN_S 13
/** LEDC_EVT_TIME_OVF_TIMER0_EN : R/W; bitpos: [16]; default: 0;
* Ledc timer0 overflow event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_TIME_OVF_TIMER0_EN (BIT(16))
#define LEDC_EVT_TIME_OVF_TIMER0_EN_M (LEDC_EVT_TIME_OVF_TIMER0_EN_V << LEDC_EVT_TIME_OVF_TIMER0_EN_S)
#define LEDC_EVT_TIME_OVF_TIMER0_EN_V 0x00000001U
#define LEDC_EVT_TIME_OVF_TIMER0_EN_S 16
/** LEDC_EVT_TIME_OVF_TIMER1_EN : R/W; bitpos: [17]; default: 0;
* Ledc timer1 overflow event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_TIME_OVF_TIMER1_EN (BIT(17))
#define LEDC_EVT_TIME_OVF_TIMER1_EN_M (LEDC_EVT_TIME_OVF_TIMER1_EN_V << LEDC_EVT_TIME_OVF_TIMER1_EN_S)
#define LEDC_EVT_TIME_OVF_TIMER1_EN_V 0x00000001U
#define LEDC_EVT_TIME_OVF_TIMER1_EN_S 17
/** LEDC_EVT_TIME_OVF_TIMER2_EN : R/W; bitpos: [18]; default: 0;
* Ledc timer2 overflow event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_TIME_OVF_TIMER2_EN (BIT(18))
#define LEDC_EVT_TIME_OVF_TIMER2_EN_M (LEDC_EVT_TIME_OVF_TIMER2_EN_V << LEDC_EVT_TIME_OVF_TIMER2_EN_S)
#define LEDC_EVT_TIME_OVF_TIMER2_EN_V 0x00000001U
#define LEDC_EVT_TIME_OVF_TIMER2_EN_S 18
/** LEDC_EVT_TIME_OVF_TIMER3_EN : R/W; bitpos: [19]; default: 0;
* Ledc timer3 overflow event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_TIME_OVF_TIMER3_EN (BIT(19))
#define LEDC_EVT_TIME_OVF_TIMER3_EN_M (LEDC_EVT_TIME_OVF_TIMER3_EN_V << LEDC_EVT_TIME_OVF_TIMER3_EN_S)
#define LEDC_EVT_TIME_OVF_TIMER3_EN_V 0x00000001U
#define LEDC_EVT_TIME_OVF_TIMER3_EN_S 19
/** LEDC_EVT_TIME0_CMP_EN : R/W; bitpos: [20]; default: 0;
* Ledc timer0 compare event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_TIME0_CMP_EN (BIT(20))
#define LEDC_EVT_TIME0_CMP_EN_M (LEDC_EVT_TIME0_CMP_EN_V << LEDC_EVT_TIME0_CMP_EN_S)
#define LEDC_EVT_TIME0_CMP_EN_V 0x00000001U
#define LEDC_EVT_TIME0_CMP_EN_S 20
/** LEDC_EVT_TIME1_CMP_EN : R/W; bitpos: [21]; default: 0;
* Ledc timer1 compare event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_TIME1_CMP_EN (BIT(21))
#define LEDC_EVT_TIME1_CMP_EN_M (LEDC_EVT_TIME1_CMP_EN_V << LEDC_EVT_TIME1_CMP_EN_S)
#define LEDC_EVT_TIME1_CMP_EN_V 0x00000001U
#define LEDC_EVT_TIME1_CMP_EN_S 21
/** LEDC_EVT_TIME2_CMP_EN : R/W; bitpos: [22]; default: 0;
* Ledc timer2 compare event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_TIME2_CMP_EN (BIT(22))
#define LEDC_EVT_TIME2_CMP_EN_M (LEDC_EVT_TIME2_CMP_EN_V << LEDC_EVT_TIME2_CMP_EN_S)
#define LEDC_EVT_TIME2_CMP_EN_V 0x00000001U
#define LEDC_EVT_TIME2_CMP_EN_S 22
/** LEDC_EVT_TIME3_CMP_EN : R/W; bitpos: [23]; default: 0;
* Ledc timer3 compare event enable register, write 1 to enable this event.
*/
#define LEDC_EVT_TIME3_CMP_EN (BIT(23))
#define LEDC_EVT_TIME3_CMP_EN_M (LEDC_EVT_TIME3_CMP_EN_V << LEDC_EVT_TIME3_CMP_EN_S)
#define LEDC_EVT_TIME3_CMP_EN_V 0x00000001U
#define LEDC_EVT_TIME3_CMP_EN_S 23
/** LEDC_TASK_DUTY_SCALE_UPDATE_CH0_EN : R/W; bitpos: [24]; default: 0;
* Ledc ch0 duty scale update task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH0_EN (BIT(24))
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH0_EN_M (LEDC_TASK_DUTY_SCALE_UPDATE_CH0_EN_V << LEDC_TASK_DUTY_SCALE_UPDATE_CH0_EN_S)
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH0_EN_V 0x00000001U
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH0_EN_S 24
/** LEDC_TASK_DUTY_SCALE_UPDATE_CH1_EN : R/W; bitpos: [25]; default: 0;
* Ledc ch1 duty scale update task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH1_EN (BIT(25))
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH1_EN_M (LEDC_TASK_DUTY_SCALE_UPDATE_CH1_EN_V << LEDC_TASK_DUTY_SCALE_UPDATE_CH1_EN_S)
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH1_EN_V 0x00000001U
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH1_EN_S 25
/** LEDC_TASK_DUTY_SCALE_UPDATE_CH2_EN : R/W; bitpos: [26]; default: 0;
* Ledc ch2 duty scale update task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH2_EN (BIT(26))
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH2_EN_M (LEDC_TASK_DUTY_SCALE_UPDATE_CH2_EN_V << LEDC_TASK_DUTY_SCALE_UPDATE_CH2_EN_S)
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH2_EN_V 0x00000001U
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH2_EN_S 26
/** LEDC_TASK_DUTY_SCALE_UPDATE_CH3_EN : R/W; bitpos: [27]; default: 0;
* Ledc ch3 duty scale update task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH3_EN (BIT(27))
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH3_EN_M (LEDC_TASK_DUTY_SCALE_UPDATE_CH3_EN_V << LEDC_TASK_DUTY_SCALE_UPDATE_CH3_EN_S)
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH3_EN_V 0x00000001U
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH3_EN_S 27
/** LEDC_TASK_DUTY_SCALE_UPDATE_CH4_EN : R/W; bitpos: [28]; default: 0;
* Ledc ch4 duty scale update task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH4_EN (BIT(28))
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH4_EN_M (LEDC_TASK_DUTY_SCALE_UPDATE_CH4_EN_V << LEDC_TASK_DUTY_SCALE_UPDATE_CH4_EN_S)
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH4_EN_V 0x00000001U
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH4_EN_S 28
/** LEDC_TASK_DUTY_SCALE_UPDATE_CH5_EN : R/W; bitpos: [29]; default: 0;
* Ledc ch5 duty scale update task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH5_EN (BIT(29))
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH5_EN_M (LEDC_TASK_DUTY_SCALE_UPDATE_CH5_EN_V << LEDC_TASK_DUTY_SCALE_UPDATE_CH5_EN_S)
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH5_EN_V 0x00000001U
#define LEDC_TASK_DUTY_SCALE_UPDATE_CH5_EN_S 29
/** LEDC_EVT_TASK_EN1_REG register
* Ledc event task enable bit register1.
*/
#define LEDC_EVT_TASK_EN1_REG (DR_REG_LEDC_BASE + 0x1a4)
/** LEDC_TASK_TIMER0_RES_UPDATE_EN : R/W; bitpos: [0]; default: 0;
* Ledc timer0 res update task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER0_RES_UPDATE_EN (BIT(0))
#define LEDC_TASK_TIMER0_RES_UPDATE_EN_M (LEDC_TASK_TIMER0_RES_UPDATE_EN_V << LEDC_TASK_TIMER0_RES_UPDATE_EN_S)
#define LEDC_TASK_TIMER0_RES_UPDATE_EN_V 0x00000001U
#define LEDC_TASK_TIMER0_RES_UPDATE_EN_S 0
/** LEDC_TASK_TIMER1_RES_UPDATE_EN : R/W; bitpos: [1]; default: 0;
* Ledc timer1 res update task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER1_RES_UPDATE_EN (BIT(1))
#define LEDC_TASK_TIMER1_RES_UPDATE_EN_M (LEDC_TASK_TIMER1_RES_UPDATE_EN_V << LEDC_TASK_TIMER1_RES_UPDATE_EN_S)
#define LEDC_TASK_TIMER1_RES_UPDATE_EN_V 0x00000001U
#define LEDC_TASK_TIMER1_RES_UPDATE_EN_S 1
/** LEDC_TASK_TIMER2_RES_UPDATE_EN : R/W; bitpos: [2]; default: 0;
* Ledc timer2 res update task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER2_RES_UPDATE_EN (BIT(2))
#define LEDC_TASK_TIMER2_RES_UPDATE_EN_M (LEDC_TASK_TIMER2_RES_UPDATE_EN_V << LEDC_TASK_TIMER2_RES_UPDATE_EN_S)
#define LEDC_TASK_TIMER2_RES_UPDATE_EN_V 0x00000001U
#define LEDC_TASK_TIMER2_RES_UPDATE_EN_S 2
/** LEDC_TASK_TIMER3_RES_UPDATE_EN : R/W; bitpos: [3]; default: 0;
* Ledc timer3 res update task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER3_RES_UPDATE_EN (BIT(3))
#define LEDC_TASK_TIMER3_RES_UPDATE_EN_M (LEDC_TASK_TIMER3_RES_UPDATE_EN_V << LEDC_TASK_TIMER3_RES_UPDATE_EN_S)
#define LEDC_TASK_TIMER3_RES_UPDATE_EN_V 0x00000001U
#define LEDC_TASK_TIMER3_RES_UPDATE_EN_S 3
/** LEDC_TASK_TIMER0_CAP_EN : R/W; bitpos: [4]; default: 0;
* Ledc timer0 capture task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER0_CAP_EN (BIT(4))
#define LEDC_TASK_TIMER0_CAP_EN_M (LEDC_TASK_TIMER0_CAP_EN_V << LEDC_TASK_TIMER0_CAP_EN_S)
#define LEDC_TASK_TIMER0_CAP_EN_V 0x00000001U
#define LEDC_TASK_TIMER0_CAP_EN_S 4
/** LEDC_TASK_TIMER1_CAP_EN : R/W; bitpos: [5]; default: 0;
* Ledc timer1 capture task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER1_CAP_EN (BIT(5))
#define LEDC_TASK_TIMER1_CAP_EN_M (LEDC_TASK_TIMER1_CAP_EN_V << LEDC_TASK_TIMER1_CAP_EN_S)
#define LEDC_TASK_TIMER1_CAP_EN_V 0x00000001U
#define LEDC_TASK_TIMER1_CAP_EN_S 5
/** LEDC_TASK_TIMER2_CAP_EN : R/W; bitpos: [6]; default: 0;
* Ledc timer2 capture task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER2_CAP_EN (BIT(6))
#define LEDC_TASK_TIMER2_CAP_EN_M (LEDC_TASK_TIMER2_CAP_EN_V << LEDC_TASK_TIMER2_CAP_EN_S)
#define LEDC_TASK_TIMER2_CAP_EN_V 0x00000001U
#define LEDC_TASK_TIMER2_CAP_EN_S 6
/** LEDC_TASK_TIMER3_CAP_EN : R/W; bitpos: [7]; default: 0;
* Ledc timer3 capture task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER3_CAP_EN (BIT(7))
#define LEDC_TASK_TIMER3_CAP_EN_M (LEDC_TASK_TIMER3_CAP_EN_V << LEDC_TASK_TIMER3_CAP_EN_S)
#define LEDC_TASK_TIMER3_CAP_EN_V 0x00000001U
#define LEDC_TASK_TIMER3_CAP_EN_S 7
/** LEDC_TASK_SIG_OUT_DIS_CH0_EN : R/W; bitpos: [8]; default: 0;
* Ledc ch0 signal out disable task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_SIG_OUT_DIS_CH0_EN (BIT(8))
#define LEDC_TASK_SIG_OUT_DIS_CH0_EN_M (LEDC_TASK_SIG_OUT_DIS_CH0_EN_V << LEDC_TASK_SIG_OUT_DIS_CH0_EN_S)
#define LEDC_TASK_SIG_OUT_DIS_CH0_EN_V 0x00000001U
#define LEDC_TASK_SIG_OUT_DIS_CH0_EN_S 8
/** LEDC_TASK_SIG_OUT_DIS_CH1_EN : R/W; bitpos: [9]; default: 0;
* Ledc ch1 signal out disable task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_SIG_OUT_DIS_CH1_EN (BIT(9))
#define LEDC_TASK_SIG_OUT_DIS_CH1_EN_M (LEDC_TASK_SIG_OUT_DIS_CH1_EN_V << LEDC_TASK_SIG_OUT_DIS_CH1_EN_S)
#define LEDC_TASK_SIG_OUT_DIS_CH1_EN_V 0x00000001U
#define LEDC_TASK_SIG_OUT_DIS_CH1_EN_S 9
/** LEDC_TASK_SIG_OUT_DIS_CH2_EN : R/W; bitpos: [10]; default: 0;
* Ledc ch2 signal out disable task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_SIG_OUT_DIS_CH2_EN (BIT(10))
#define LEDC_TASK_SIG_OUT_DIS_CH2_EN_M (LEDC_TASK_SIG_OUT_DIS_CH2_EN_V << LEDC_TASK_SIG_OUT_DIS_CH2_EN_S)
#define LEDC_TASK_SIG_OUT_DIS_CH2_EN_V 0x00000001U
#define LEDC_TASK_SIG_OUT_DIS_CH2_EN_S 10
/** LEDC_TASK_SIG_OUT_DIS_CH3_EN : R/W; bitpos: [11]; default: 0;
* Ledc ch3 signal out disable task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_SIG_OUT_DIS_CH3_EN (BIT(11))
#define LEDC_TASK_SIG_OUT_DIS_CH3_EN_M (LEDC_TASK_SIG_OUT_DIS_CH3_EN_V << LEDC_TASK_SIG_OUT_DIS_CH3_EN_S)
#define LEDC_TASK_SIG_OUT_DIS_CH3_EN_V 0x00000001U
#define LEDC_TASK_SIG_OUT_DIS_CH3_EN_S 11
/** LEDC_TASK_SIG_OUT_DIS_CH4_EN : R/W; bitpos: [12]; default: 0;
* Ledc ch4 signal out disable task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_SIG_OUT_DIS_CH4_EN (BIT(12))
#define LEDC_TASK_SIG_OUT_DIS_CH4_EN_M (LEDC_TASK_SIG_OUT_DIS_CH4_EN_V << LEDC_TASK_SIG_OUT_DIS_CH4_EN_S)
#define LEDC_TASK_SIG_OUT_DIS_CH4_EN_V 0x00000001U
#define LEDC_TASK_SIG_OUT_DIS_CH4_EN_S 12
/** LEDC_TASK_SIG_OUT_DIS_CH5_EN : R/W; bitpos: [13]; default: 0;
* Ledc ch5 signal out disable task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_SIG_OUT_DIS_CH5_EN (BIT(13))
#define LEDC_TASK_SIG_OUT_DIS_CH5_EN_M (LEDC_TASK_SIG_OUT_DIS_CH5_EN_V << LEDC_TASK_SIG_OUT_DIS_CH5_EN_S)
#define LEDC_TASK_SIG_OUT_DIS_CH5_EN_V 0x00000001U
#define LEDC_TASK_SIG_OUT_DIS_CH5_EN_S 13
/** LEDC_TASK_OVF_CNT_RST_CH0_EN : R/W; bitpos: [16]; default: 0;
* Ledc ch0 overflow count reset task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_OVF_CNT_RST_CH0_EN (BIT(16))
#define LEDC_TASK_OVF_CNT_RST_CH0_EN_M (LEDC_TASK_OVF_CNT_RST_CH0_EN_V << LEDC_TASK_OVF_CNT_RST_CH0_EN_S)
#define LEDC_TASK_OVF_CNT_RST_CH0_EN_V 0x00000001U
#define LEDC_TASK_OVF_CNT_RST_CH0_EN_S 16
/** LEDC_TASK_OVF_CNT_RST_CH1_EN : R/W; bitpos: [17]; default: 0;
* Ledc ch1 overflow count reset task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_OVF_CNT_RST_CH1_EN (BIT(17))
#define LEDC_TASK_OVF_CNT_RST_CH1_EN_M (LEDC_TASK_OVF_CNT_RST_CH1_EN_V << LEDC_TASK_OVF_CNT_RST_CH1_EN_S)
#define LEDC_TASK_OVF_CNT_RST_CH1_EN_V 0x00000001U
#define LEDC_TASK_OVF_CNT_RST_CH1_EN_S 17
/** LEDC_TASK_OVF_CNT_RST_CH2_EN : R/W; bitpos: [18]; default: 0;
* Ledc ch2 overflow count reset task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_OVF_CNT_RST_CH2_EN (BIT(18))
#define LEDC_TASK_OVF_CNT_RST_CH2_EN_M (LEDC_TASK_OVF_CNT_RST_CH2_EN_V << LEDC_TASK_OVF_CNT_RST_CH2_EN_S)
#define LEDC_TASK_OVF_CNT_RST_CH2_EN_V 0x00000001U
#define LEDC_TASK_OVF_CNT_RST_CH2_EN_S 18
/** LEDC_TASK_OVF_CNT_RST_CH3_EN : R/W; bitpos: [19]; default: 0;
* Ledc ch3 overflow count reset task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_OVF_CNT_RST_CH3_EN (BIT(19))
#define LEDC_TASK_OVF_CNT_RST_CH3_EN_M (LEDC_TASK_OVF_CNT_RST_CH3_EN_V << LEDC_TASK_OVF_CNT_RST_CH3_EN_S)
#define LEDC_TASK_OVF_CNT_RST_CH3_EN_V 0x00000001U
#define LEDC_TASK_OVF_CNT_RST_CH3_EN_S 19
/** LEDC_TASK_OVF_CNT_RST_CH4_EN : R/W; bitpos: [20]; default: 0;
* Ledc ch4 overflow count reset task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_OVF_CNT_RST_CH4_EN (BIT(20))
#define LEDC_TASK_OVF_CNT_RST_CH4_EN_M (LEDC_TASK_OVF_CNT_RST_CH4_EN_V << LEDC_TASK_OVF_CNT_RST_CH4_EN_S)
#define LEDC_TASK_OVF_CNT_RST_CH4_EN_V 0x00000001U
#define LEDC_TASK_OVF_CNT_RST_CH4_EN_S 20
/** LEDC_TASK_OVF_CNT_RST_CH5_EN : R/W; bitpos: [21]; default: 0;
* Ledc ch5 overflow count reset task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_OVF_CNT_RST_CH5_EN (BIT(21))
#define LEDC_TASK_OVF_CNT_RST_CH5_EN_M (LEDC_TASK_OVF_CNT_RST_CH5_EN_V << LEDC_TASK_OVF_CNT_RST_CH5_EN_S)
#define LEDC_TASK_OVF_CNT_RST_CH5_EN_V 0x00000001U
#define LEDC_TASK_OVF_CNT_RST_CH5_EN_S 21
/** LEDC_TASK_TIMER0_RST_EN : R/W; bitpos: [24]; default: 0;
* Ledc timer0 reset task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER0_RST_EN (BIT(24))
#define LEDC_TASK_TIMER0_RST_EN_M (LEDC_TASK_TIMER0_RST_EN_V << LEDC_TASK_TIMER0_RST_EN_S)
#define LEDC_TASK_TIMER0_RST_EN_V 0x00000001U
#define LEDC_TASK_TIMER0_RST_EN_S 24
/** LEDC_TASK_TIMER1_RST_EN : R/W; bitpos: [25]; default: 0;
* Ledc timer1 reset task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER1_RST_EN (BIT(25))
#define LEDC_TASK_TIMER1_RST_EN_M (LEDC_TASK_TIMER1_RST_EN_V << LEDC_TASK_TIMER1_RST_EN_S)
#define LEDC_TASK_TIMER1_RST_EN_V 0x00000001U
#define LEDC_TASK_TIMER1_RST_EN_S 25
/** LEDC_TASK_TIMER2_RST_EN : R/W; bitpos: [26]; default: 0;
* Ledc timer2 reset task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER2_RST_EN (BIT(26))
#define LEDC_TASK_TIMER2_RST_EN_M (LEDC_TASK_TIMER2_RST_EN_V << LEDC_TASK_TIMER2_RST_EN_S)
#define LEDC_TASK_TIMER2_RST_EN_V 0x00000001U
#define LEDC_TASK_TIMER2_RST_EN_S 26
/** LEDC_TASK_TIMER3_RST_EN : R/W; bitpos: [27]; default: 0;
* Ledc timer3 reset task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER3_RST_EN (BIT(27))
#define LEDC_TASK_TIMER3_RST_EN_M (LEDC_TASK_TIMER3_RST_EN_V << LEDC_TASK_TIMER3_RST_EN_S)
#define LEDC_TASK_TIMER3_RST_EN_V 0x00000001U
#define LEDC_TASK_TIMER3_RST_EN_S 27
/** LEDC_TASK_TIMER0_PAUSE_RESUME_EN : R/W; bitpos: [28]; default: 0;
* Ledc timer0 pause resume task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER0_PAUSE_RESUME_EN (BIT(28))
#define LEDC_TASK_TIMER0_PAUSE_RESUME_EN_M (LEDC_TASK_TIMER0_PAUSE_RESUME_EN_V << LEDC_TASK_TIMER0_PAUSE_RESUME_EN_S)
#define LEDC_TASK_TIMER0_PAUSE_RESUME_EN_V 0x00000001U
#define LEDC_TASK_TIMER0_PAUSE_RESUME_EN_S 28
/** LEDC_TASK_TIMER1_PAUSE_RESUME_EN : R/W; bitpos: [29]; default: 0;
* Ledc timer1 pause resume task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER1_PAUSE_RESUME_EN (BIT(29))
#define LEDC_TASK_TIMER1_PAUSE_RESUME_EN_M (LEDC_TASK_TIMER1_PAUSE_RESUME_EN_V << LEDC_TASK_TIMER1_PAUSE_RESUME_EN_S)
#define LEDC_TASK_TIMER1_PAUSE_RESUME_EN_V 0x00000001U
#define LEDC_TASK_TIMER1_PAUSE_RESUME_EN_S 29
/** LEDC_TASK_TIMER2_PAUSE_RESUME_EN : R/W; bitpos: [30]; default: 0;
* Ledc timer2 pause resume task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER2_PAUSE_RESUME_EN (BIT(30))
#define LEDC_TASK_TIMER2_PAUSE_RESUME_EN_M (LEDC_TASK_TIMER2_PAUSE_RESUME_EN_V << LEDC_TASK_TIMER2_PAUSE_RESUME_EN_S)
#define LEDC_TASK_TIMER2_PAUSE_RESUME_EN_V 0x00000001U
#define LEDC_TASK_TIMER2_PAUSE_RESUME_EN_S 30
/** LEDC_TASK_TIMER3_PAUSE_RESUME_EN : R/W; bitpos: [31]; default: 0;
* Ledc timer3 pause resume task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_TIMER3_PAUSE_RESUME_EN (BIT(31))
#define LEDC_TASK_TIMER3_PAUSE_RESUME_EN_M (LEDC_TASK_TIMER3_PAUSE_RESUME_EN_V << LEDC_TASK_TIMER3_PAUSE_RESUME_EN_S)
#define LEDC_TASK_TIMER3_PAUSE_RESUME_EN_V 0x00000001U
#define LEDC_TASK_TIMER3_PAUSE_RESUME_EN_S 31
/** LEDC_EVT_TASK_EN2_REG register
* Ledc event task enable bit register2.
*/
#define LEDC_EVT_TASK_EN2_REG (DR_REG_LEDC_BASE + 0x1a8)
/** LEDC_TASK_GAMMA_RESTART_CH0_EN : R/W; bitpos: [0]; default: 0;
* Ledc ch0 gamma restart task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESTART_CH0_EN (BIT(0))
#define LEDC_TASK_GAMMA_RESTART_CH0_EN_M (LEDC_TASK_GAMMA_RESTART_CH0_EN_V << LEDC_TASK_GAMMA_RESTART_CH0_EN_S)
#define LEDC_TASK_GAMMA_RESTART_CH0_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESTART_CH0_EN_S 0
/** LEDC_TASK_GAMMA_RESTART_CH1_EN : R/W; bitpos: [1]; default: 0;
* Ledc ch1 gamma restart task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESTART_CH1_EN (BIT(1))
#define LEDC_TASK_GAMMA_RESTART_CH1_EN_M (LEDC_TASK_GAMMA_RESTART_CH1_EN_V << LEDC_TASK_GAMMA_RESTART_CH1_EN_S)
#define LEDC_TASK_GAMMA_RESTART_CH1_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESTART_CH1_EN_S 1
/** LEDC_TASK_GAMMA_RESTART_CH2_EN : R/W; bitpos: [2]; default: 0;
* Ledc ch2 gamma restart task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESTART_CH2_EN (BIT(2))
#define LEDC_TASK_GAMMA_RESTART_CH2_EN_M (LEDC_TASK_GAMMA_RESTART_CH2_EN_V << LEDC_TASK_GAMMA_RESTART_CH2_EN_S)
#define LEDC_TASK_GAMMA_RESTART_CH2_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESTART_CH2_EN_S 2
/** LEDC_TASK_GAMMA_RESTART_CH3_EN : R/W; bitpos: [3]; default: 0;
* Ledc ch3 gamma restart task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESTART_CH3_EN (BIT(3))
#define LEDC_TASK_GAMMA_RESTART_CH3_EN_M (LEDC_TASK_GAMMA_RESTART_CH3_EN_V << LEDC_TASK_GAMMA_RESTART_CH3_EN_S)
#define LEDC_TASK_GAMMA_RESTART_CH3_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESTART_CH3_EN_S 3
/** LEDC_TASK_GAMMA_RESTART_CH4_EN : R/W; bitpos: [4]; default: 0;
* Ledc ch4 gamma restart task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESTART_CH4_EN (BIT(4))
#define LEDC_TASK_GAMMA_RESTART_CH4_EN_M (LEDC_TASK_GAMMA_RESTART_CH4_EN_V << LEDC_TASK_GAMMA_RESTART_CH4_EN_S)
#define LEDC_TASK_GAMMA_RESTART_CH4_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESTART_CH4_EN_S 4
/** LEDC_TASK_GAMMA_RESTART_CH5_EN : R/W; bitpos: [5]; default: 0;
* Ledc ch5 gamma restart task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESTART_CH5_EN (BIT(5))
#define LEDC_TASK_GAMMA_RESTART_CH5_EN_M (LEDC_TASK_GAMMA_RESTART_CH5_EN_V << LEDC_TASK_GAMMA_RESTART_CH5_EN_S)
#define LEDC_TASK_GAMMA_RESTART_CH5_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESTART_CH5_EN_S 5
/** LEDC_TASK_GAMMA_PAUSE_CH0_EN : R/W; bitpos: [8]; default: 0;
* Ledc ch0 gamma pause task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_PAUSE_CH0_EN (BIT(8))
#define LEDC_TASK_GAMMA_PAUSE_CH0_EN_M (LEDC_TASK_GAMMA_PAUSE_CH0_EN_V << LEDC_TASK_GAMMA_PAUSE_CH0_EN_S)
#define LEDC_TASK_GAMMA_PAUSE_CH0_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_PAUSE_CH0_EN_S 8
/** LEDC_TASK_GAMMA_PAUSE_CH1_EN : R/W; bitpos: [9]; default: 0;
* Ledc ch1 gamma pause task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_PAUSE_CH1_EN (BIT(9))
#define LEDC_TASK_GAMMA_PAUSE_CH1_EN_M (LEDC_TASK_GAMMA_PAUSE_CH1_EN_V << LEDC_TASK_GAMMA_PAUSE_CH1_EN_S)
#define LEDC_TASK_GAMMA_PAUSE_CH1_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_PAUSE_CH1_EN_S 9
/** LEDC_TASK_GAMMA_PAUSE_CH2_EN : R/W; bitpos: [10]; default: 0;
* Ledc ch2 gamma pause task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_PAUSE_CH2_EN (BIT(10))
#define LEDC_TASK_GAMMA_PAUSE_CH2_EN_M (LEDC_TASK_GAMMA_PAUSE_CH2_EN_V << LEDC_TASK_GAMMA_PAUSE_CH2_EN_S)
#define LEDC_TASK_GAMMA_PAUSE_CH2_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_PAUSE_CH2_EN_S 10
/** LEDC_TASK_GAMMA_PAUSE_CH3_EN : R/W; bitpos: [11]; default: 0;
* Ledc ch3 gamma pause task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_PAUSE_CH3_EN (BIT(11))
#define LEDC_TASK_GAMMA_PAUSE_CH3_EN_M (LEDC_TASK_GAMMA_PAUSE_CH3_EN_V << LEDC_TASK_GAMMA_PAUSE_CH3_EN_S)
#define LEDC_TASK_GAMMA_PAUSE_CH3_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_PAUSE_CH3_EN_S 11
/** LEDC_TASK_GAMMA_PAUSE_CH4_EN : R/W; bitpos: [12]; default: 0;
* Ledc ch4 gamma pause task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_PAUSE_CH4_EN (BIT(12))
#define LEDC_TASK_GAMMA_PAUSE_CH4_EN_M (LEDC_TASK_GAMMA_PAUSE_CH4_EN_V << LEDC_TASK_GAMMA_PAUSE_CH4_EN_S)
#define LEDC_TASK_GAMMA_PAUSE_CH4_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_PAUSE_CH4_EN_S 12
/** LEDC_TASK_GAMMA_PAUSE_CH5_EN : R/W; bitpos: [13]; default: 0;
* Ledc ch5 gamma pause task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_PAUSE_CH5_EN (BIT(13))
#define LEDC_TASK_GAMMA_PAUSE_CH5_EN_M (LEDC_TASK_GAMMA_PAUSE_CH5_EN_V << LEDC_TASK_GAMMA_PAUSE_CH5_EN_S)
#define LEDC_TASK_GAMMA_PAUSE_CH5_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_PAUSE_CH5_EN_S 13
/** LEDC_TASK_GAMMA_RESUME_CH0_EN : R/W; bitpos: [16]; default: 0;
* Ledc ch0 gamma resume task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESUME_CH0_EN (BIT(16))
#define LEDC_TASK_GAMMA_RESUME_CH0_EN_M (LEDC_TASK_GAMMA_RESUME_CH0_EN_V << LEDC_TASK_GAMMA_RESUME_CH0_EN_S)
#define LEDC_TASK_GAMMA_RESUME_CH0_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESUME_CH0_EN_S 16
/** LEDC_TASK_GAMMA_RESUME_CH1_EN : R/W; bitpos: [17]; default: 0;
* Ledc ch1 gamma resume task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESUME_CH1_EN (BIT(17))
#define LEDC_TASK_GAMMA_RESUME_CH1_EN_M (LEDC_TASK_GAMMA_RESUME_CH1_EN_V << LEDC_TASK_GAMMA_RESUME_CH1_EN_S)
#define LEDC_TASK_GAMMA_RESUME_CH1_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESUME_CH1_EN_S 17
/** LEDC_TASK_GAMMA_RESUME_CH2_EN : R/W; bitpos: [18]; default: 0;
* Ledc ch2 gamma resume task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESUME_CH2_EN (BIT(18))
#define LEDC_TASK_GAMMA_RESUME_CH2_EN_M (LEDC_TASK_GAMMA_RESUME_CH2_EN_V << LEDC_TASK_GAMMA_RESUME_CH2_EN_S)
#define LEDC_TASK_GAMMA_RESUME_CH2_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESUME_CH2_EN_S 18
/** LEDC_TASK_GAMMA_RESUME_CH3_EN : R/W; bitpos: [19]; default: 0;
* Ledc ch3 gamma resume task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESUME_CH3_EN (BIT(19))
#define LEDC_TASK_GAMMA_RESUME_CH3_EN_M (LEDC_TASK_GAMMA_RESUME_CH3_EN_V << LEDC_TASK_GAMMA_RESUME_CH3_EN_S)
#define LEDC_TASK_GAMMA_RESUME_CH3_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESUME_CH3_EN_S 19
/** LEDC_TASK_GAMMA_RESUME_CH4_EN : R/W; bitpos: [20]; default: 0;
* Ledc ch4 gamma resume task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESUME_CH4_EN (BIT(20))
#define LEDC_TASK_GAMMA_RESUME_CH4_EN_M (LEDC_TASK_GAMMA_RESUME_CH4_EN_V << LEDC_TASK_GAMMA_RESUME_CH4_EN_S)
#define LEDC_TASK_GAMMA_RESUME_CH4_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESUME_CH4_EN_S 20
/** LEDC_TASK_GAMMA_RESUME_CH5_EN : R/W; bitpos: [21]; default: 0;
* Ledc ch5 gamma resume task enable register, write 1 to enable this task.
*/
#define LEDC_TASK_GAMMA_RESUME_CH5_EN (BIT(21))
#define LEDC_TASK_GAMMA_RESUME_CH5_EN_M (LEDC_TASK_GAMMA_RESUME_CH5_EN_V << LEDC_TASK_GAMMA_RESUME_CH5_EN_S)
#define LEDC_TASK_GAMMA_RESUME_CH5_EN_V 0x00000001U
#define LEDC_TASK_GAMMA_RESUME_CH5_EN_S 21
/** LEDC_TIMER0_CMP_REG register
* Ledc timer0 compare value register.
*/
#define LEDC_TIMER0_CMP_REG (DR_REG_LEDC_BASE + 0x1b0)
/** LEDC_TIMER0_CMP : R/W; bitpos: [19:0]; default: 0;
* This register stores ledc timer0 compare value.
*/
#define LEDC_TIMER0_CMP 0x000FFFFFU
#define LEDC_TIMER0_CMP_M (LEDC_TIMER0_CMP_V << LEDC_TIMER0_CMP_S)
#define LEDC_TIMER0_CMP_V 0x000FFFFFU
#define LEDC_TIMER0_CMP_S 0
/** LEDC_TIMER1_CMP_REG register
* Ledc timer1 compare value register.
*/
#define LEDC_TIMER1_CMP_REG (DR_REG_LEDC_BASE + 0x1b4)
/** LEDC_TIMER1_CMP : R/W; bitpos: [19:0]; default: 0;
* This register stores ledc timer1 compare value.
*/
#define LEDC_TIMER1_CMP 0x000FFFFFU
#define LEDC_TIMER1_CMP_M (LEDC_TIMER1_CMP_V << LEDC_TIMER1_CMP_S)
#define LEDC_TIMER1_CMP_V 0x000FFFFFU
#define LEDC_TIMER1_CMP_S 0
/** LEDC_TIMER2_CMP_REG register
* Ledc timer2 compare value register.
*/
#define LEDC_TIMER2_CMP_REG (DR_REG_LEDC_BASE + 0x1b8)
/** LEDC_TIMER2_CMP : R/W; bitpos: [19:0]; default: 0;
* This register stores ledc timer2 compare value.
*/
#define LEDC_TIMER2_CMP 0x000FFFFFU
#define LEDC_TIMER2_CMP_M (LEDC_TIMER2_CMP_V << LEDC_TIMER2_CMP_S)
#define LEDC_TIMER2_CMP_V 0x000FFFFFU
#define LEDC_TIMER2_CMP_S 0
/** LEDC_TIMER3_CMP_REG register
* Ledc timer3 compare value register.
*/
#define LEDC_TIMER3_CMP_REG (DR_REG_LEDC_BASE + 0x1bc)
/** LEDC_TIMER3_CMP : R/W; bitpos: [19:0]; default: 0;
* This register stores ledc timer3 compare value.
*/
#define LEDC_TIMER3_CMP 0x000FFFFFU
#define LEDC_TIMER3_CMP_M (LEDC_TIMER3_CMP_V << LEDC_TIMER3_CMP_S)
#define LEDC_TIMER3_CMP_V 0x000FFFFFU
#define LEDC_TIMER3_CMP_S 0
/** LEDC_TIMER0_CNT_CAP_REG register
* Ledc timer0 count value capture register.
*/
#define LEDC_TIMER0_CNT_CAP_REG (DR_REG_LEDC_BASE + 0x1c0)
/** LEDC_TIMER0_CNT_CAP : RO; bitpos: [19:0]; default: 0;
* This register stores ledc timer0 count value.
*/
#define LEDC_TIMER0_CNT_CAP 0x000FFFFFU
#define LEDC_TIMER0_CNT_CAP_M (LEDC_TIMER0_CNT_CAP_V << LEDC_TIMER0_CNT_CAP_S)
#define LEDC_TIMER0_CNT_CAP_V 0x000FFFFFU
#define LEDC_TIMER0_CNT_CAP_S 0
/** LEDC_TIMER1_CNT_CAP_REG register
* Ledc timer1 count value capture register.
*/
#define LEDC_TIMER1_CNT_CAP_REG (DR_REG_LEDC_BASE + 0x1c4)
/** LEDC_TIMER1_CNT_CAP : RO; bitpos: [19:0]; default: 0;
* This register stores ledc timer1 count value.
*/
#define LEDC_TIMER1_CNT_CAP 0x000FFFFFU
#define LEDC_TIMER1_CNT_CAP_M (LEDC_TIMER1_CNT_CAP_V << LEDC_TIMER1_CNT_CAP_S)
#define LEDC_TIMER1_CNT_CAP_V 0x000FFFFFU
#define LEDC_TIMER1_CNT_CAP_S 0
/** LEDC_TIMER2_CNT_CAP_REG register
* Ledc timer2 count value capture register.
*/
#define LEDC_TIMER2_CNT_CAP_REG (DR_REG_LEDC_BASE + 0x1c8)
/** LEDC_TIMER2_CNT_CAP : RO; bitpos: [19:0]; default: 0;
* This register stores ledc timer2 count value.
*/
#define LEDC_TIMER2_CNT_CAP 0x000FFFFFU
#define LEDC_TIMER2_CNT_CAP_M (LEDC_TIMER2_CNT_CAP_V << LEDC_TIMER2_CNT_CAP_S)
#define LEDC_TIMER2_CNT_CAP_V 0x000FFFFFU
#define LEDC_TIMER2_CNT_CAP_S 0
/** LEDC_TIMER3_CNT_CAP_REG register
* Ledc timer3 count value capture register.
*/
#define LEDC_TIMER3_CNT_CAP_REG (DR_REG_LEDC_BASE + 0x1cc)
/** LEDC_TIMER3_CNT_CAP : RO; bitpos: [19:0]; default: 0;
* This register stores ledc timer3 count value.
*/
#define LEDC_TIMER3_CNT_CAP 0x000FFFFFU
#define LEDC_TIMER3_CNT_CAP_M (LEDC_TIMER3_CNT_CAP_V << LEDC_TIMER3_CNT_CAP_S)
#define LEDC_TIMER3_CNT_CAP_V 0x000FFFFFU
#define LEDC_TIMER3_CNT_CAP_S 0
/** LEDC_CONF_REG register
* Global ledc configuration register
*/
#define LEDC_CONF_REG (DR_REG_LEDC_BASE + 0x1f0)
/** LEDC_APB_CLK_SEL : R/W; bitpos: [1:0]; default: 0;
* This bit is used to select clock source for the 4 timers .
*
* 2'd1: APB_CLK 2'd2: RTC8M_CLK 2'd3: XTAL_CLK
*/
#define LEDC_APB_CLK_SEL 0x00000003U
#define LEDC_APB_CLK_SEL_M (LEDC_APB_CLK_SEL_V << LEDC_APB_CLK_SEL_S)
#define LEDC_APB_CLK_SEL_V 0x00000003U
#define LEDC_APB_CLK_SEL_S 0
/** LEDC_GAMMA_RAM_CLK_EN_CH0 : R/W; bitpos: [2]; default: 0;
* This bit is used to control clock.
*
* 1'b1: Force clock on for gamma ram. 1'h0: Support clock only when application
* writes or read gamma ram.
*/
#define LEDC_GAMMA_RAM_CLK_EN_CH0 (BIT(2))
#define LEDC_GAMMA_RAM_CLK_EN_CH0_M (LEDC_GAMMA_RAM_CLK_EN_CH0_V << LEDC_GAMMA_RAM_CLK_EN_CH0_S)
#define LEDC_GAMMA_RAM_CLK_EN_CH0_V 0x00000001U
#define LEDC_GAMMA_RAM_CLK_EN_CH0_S 2
/** LEDC_GAMMA_RAM_CLK_EN_CH1 : R/W; bitpos: [3]; default: 0;
* This bit is used to control clock.
*
* 1'b1: Force clock on for gamma ram. 1'h0: Support clock only when application
* writes or read gamma ram.
*/
#define LEDC_GAMMA_RAM_CLK_EN_CH1 (BIT(3))
#define LEDC_GAMMA_RAM_CLK_EN_CH1_M (LEDC_GAMMA_RAM_CLK_EN_CH1_V << LEDC_GAMMA_RAM_CLK_EN_CH1_S)
#define LEDC_GAMMA_RAM_CLK_EN_CH1_V 0x00000001U
#define LEDC_GAMMA_RAM_CLK_EN_CH1_S 3
/** LEDC_GAMMA_RAM_CLK_EN_CH2 : R/W; bitpos: [4]; default: 0;
* This bit is used to control clock.
*
* 1'b1: Force clock on for gamma ram. 1'h0: Support clock only when application
* writes or read gamma ram.
*/
#define LEDC_GAMMA_RAM_CLK_EN_CH2 (BIT(4))
#define LEDC_GAMMA_RAM_CLK_EN_CH2_M (LEDC_GAMMA_RAM_CLK_EN_CH2_V << LEDC_GAMMA_RAM_CLK_EN_CH2_S)
#define LEDC_GAMMA_RAM_CLK_EN_CH2_V 0x00000001U
#define LEDC_GAMMA_RAM_CLK_EN_CH2_S 4
/** LEDC_GAMMA_RAM_CLK_EN_CH3 : R/W; bitpos: [5]; default: 0;
* This bit is used to control clock.
*
* 1'b1: Force clock on for gamma ram. 1'h0: Support clock only when application
* writes or read gamma ram.
*/
#define LEDC_GAMMA_RAM_CLK_EN_CH3 (BIT(5))
#define LEDC_GAMMA_RAM_CLK_EN_CH3_M (LEDC_GAMMA_RAM_CLK_EN_CH3_V << LEDC_GAMMA_RAM_CLK_EN_CH3_S)
#define LEDC_GAMMA_RAM_CLK_EN_CH3_V 0x00000001U
#define LEDC_GAMMA_RAM_CLK_EN_CH3_S 5
/** LEDC_GAMMA_RAM_CLK_EN_CH4 : R/W; bitpos: [6]; default: 0;
* This bit is used to control clock.
*
* 1'b1: Force clock on for gamma ram. 1'h0: Support clock only when application
* writes or read gamma ram.
*/
#define LEDC_GAMMA_RAM_CLK_EN_CH4 (BIT(6))
#define LEDC_GAMMA_RAM_CLK_EN_CH4_M (LEDC_GAMMA_RAM_CLK_EN_CH4_V << LEDC_GAMMA_RAM_CLK_EN_CH4_S)
#define LEDC_GAMMA_RAM_CLK_EN_CH4_V 0x00000001U
#define LEDC_GAMMA_RAM_CLK_EN_CH4_S 6
/** LEDC_GAMMA_RAM_CLK_EN_CH5 : R/W; bitpos: [7]; default: 0;
* This bit is used to control clock.
*
* 1'b1: Force clock on for gamma ram. 1'h0: Support clock only when application
* writes or read gamma ram.
*/
#define LEDC_GAMMA_RAM_CLK_EN_CH5 (BIT(7))
#define LEDC_GAMMA_RAM_CLK_EN_CH5_M (LEDC_GAMMA_RAM_CLK_EN_CH5_V << LEDC_GAMMA_RAM_CLK_EN_CH5_S)
#define LEDC_GAMMA_RAM_CLK_EN_CH5_V 0x00000001U
#define LEDC_GAMMA_RAM_CLK_EN_CH5_S 7
/** LEDC_CLK_EN : R/W; bitpos: [31]; default: 0;
* This bit is used to control clock.
*
* 1'b1: Force clock on for register. 1'h0: Support clock only when application writes
* registers.
*/
#define LEDC_CLK_EN (BIT(31))
#define LEDC_CLK_EN_M (LEDC_CLK_EN_V << LEDC_CLK_EN_S)
#define LEDC_CLK_EN_V 0x00000001U
#define LEDC_CLK_EN_S 31
/** LEDC_DATE_REG register
* Version control register
*/
#define LEDC_DATE_REG (DR_REG_LEDC_BASE + 0x1fc)
/** LEDC_LEDC_DATE : R/W; bitpos: [27:0]; default: 34672976;
* This is the version control register.
*/
#define LEDC_LEDC_DATE 0x0FFFFFFFU
#define LEDC_LEDC_DATE_M (LEDC_LEDC_DATE_V << LEDC_LEDC_DATE_S)
#define LEDC_LEDC_DATE_V 0x0FFFFFFFU
#define LEDC_LEDC_DATE_S 0
#ifdef __cplusplus
}
#endif