Struct esp32c6::mcpwm0::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock {Show 76 fields
pub clk_cfg: CLK_CFG,
pub timer0_cfg0: TIMER0_CFG0,
pub timer0_cfg1: TIMER0_CFG1,
pub timer0_sync: TIMER0_SYNC,
pub timer0_status: TIMER0_STATUS,
pub timer1_cfg0: TIMER1_CFG0,
pub timer1_cfg1: TIMER1_CFG1,
pub timer1_sync: TIMER1_SYNC,
pub timer1_status: TIMER1_STATUS,
pub timer2_cfg0: TIMER2_CFG0,
pub timer2_cfg1: TIMER2_CFG1,
pub timer2_sync: TIMER2_SYNC,
pub timer2_status: TIMER2_STATUS,
pub timer_synci_cfg: TIMER_SYNCI_CFG,
pub operator_timersel: OPERATOR_TIMERSEL,
pub gen0_stmp_cfg: GEN0_STMP_CFG,
pub gen0_tstmp_a: GEN0_TSTMP_A,
pub gen0_tstmp_b: GEN0_TSTMP_B,
pub gen0_cfg0: GEN0_CFG0,
pub gen0_force: GEN0_FORCE,
pub gen0_a: GEN0_A,
pub gen0_b: GEN0_B,
pub dt0_cfg: DT0_CFG,
pub dt0_fed_cfg: DT0_FED_CFG,
pub dt0_red_cfg: DT0_RED_CFG,
pub carrier0_cfg: CARRIER0_CFG,
pub fh0_cfg0: FH0_CFG0,
pub fh0_cfg1: FH0_CFG1,
pub fh0_status: FH0_STATUS,
pub gen1_stmp_cfg: GEN1_STMP_CFG,
pub gen1_tstmp_a: GEN1_TSTMP_A,
pub gen1_tstmp_b: GEN1_TSTMP_B,
pub gen1_cfg0: GEN1_CFG0,
pub gen1_force: GEN1_FORCE,
pub gen1_a: GEN1_A,
pub gen1_b: GEN1_B,
pub dt1_cfg: DT1_CFG,
pub dt1_fed_cfg: DT1_FED_CFG,
pub dt1_red_cfg: DT1_RED_CFG,
pub carrier1_cfg: CARRIER1_CFG,
pub fh1_cfg0: FH1_CFG0,
pub fh1_cfg1: FH1_CFG1,
pub fh1_status: FH1_STATUS,
pub gen2_stmp_cfg: GEN2_STMP_CFG,
pub gen2_tstmp_a: GEN2_TSTMP_A,
pub gen2_tstmp_b: GEN2_TSTMP_B,
pub gen2_cfg0: GEN2_CFG0,
pub gen2_force: GEN2_FORCE,
pub gen2_a: GEN2_A,
pub gen2_b: GEN2_B,
pub dt2_cfg: DT2_CFG,
pub dt2_fed_cfg: DT2_FED_CFG,
pub dt2_red_cfg: DT2_RED_CFG,
pub carrier2_cfg: CARRIER2_CFG,
pub fh2_cfg0: FH2_CFG0,
pub fh2_cfg1: FH2_CFG1,
pub fh2_status: FH2_STATUS,
pub fault_detect: FAULT_DETECT,
pub cap_timer_cfg: CAP_TIMER_CFG,
pub cap_timer_phase: CAP_TIMER_PHASE,
pub cap_ch0_cfg: CAP_CH0_CFG,
pub cap_ch1_cfg: CAP_CH1_CFG,
pub cap_ch2_cfg: CAP_CH2_CFG,
pub cap_ch0: CAP_CH0,
pub cap_ch1: CAP_CH1,
pub cap_ch2: CAP_CH2,
pub cap_status: CAP_STATUS,
pub update_cfg: UPDATE_CFG,
pub int_ena: INT_ENA,
pub int_raw: INT_RAW,
pub int_st: INT_ST,
pub int_clr: INT_CLR,
pub evt_en: EVT_EN,
pub task_en: TASK_EN,
pub clk: CLK,
pub version: VERSION,
}Expand description
Register block
Fields§
§clk_cfg: CLK_CFG0x00 - PWM clock prescaler register.
timer0_cfg0: TIMER0_CFG00x04 - PWM timer0 period and update method configuration register.
timer0_cfg1: TIMER0_CFG10x08 - PWM timer0 working mode and start/stop control configuration register.
timer0_sync: TIMER0_SYNC0x0c - PWM timer0 sync function configuration register.
timer0_status: TIMER0_STATUS0x10 - PWM timer0 status register.
timer1_cfg0: TIMER1_CFG00x14 - PWM timer1 period and update method configuration register.
timer1_cfg1: TIMER1_CFG10x18 - PWM timer1 working mode and start/stop control configuration register.
timer1_sync: TIMER1_SYNC0x1c - PWM timer1 sync function configuration register.
timer1_status: TIMER1_STATUS0x20 - PWM timer1 status register.
timer2_cfg0: TIMER2_CFG00x24 - PWM timer2 period and update method configuration register.
timer2_cfg1: TIMER2_CFG10x28 - PWM timer2 working mode and start/stop control configuration register.
timer2_sync: TIMER2_SYNC0x2c - PWM timer2 sync function configuration register.
timer2_status: TIMER2_STATUS0x30 - PWM timer2 status register.
timer_synci_cfg: TIMER_SYNCI_CFG0x34 - Synchronization input selection for three PWM timers.
operator_timersel: OPERATOR_TIMERSEL0x38 - Select specific timer for PWM operators.
gen0_stmp_cfg: GEN0_STMP_CFG0x3c - Transfer status and update method for time stamp registers A and B
gen0_tstmp_a: GEN0_TSTMP_A0x40 - Shadow register for register A.
gen0_tstmp_b: GEN0_TSTMP_B0x44 - Shadow register for register B.
gen0_cfg0: GEN0_CFG00x48 - Fault event T0 and T1 handling
gen0_force: GEN0_FORCE0x4c - Permissives to force PWM0A and PWM0B outputs by software
gen0_a: GEN0_A0x50 - Actions triggered by events on PWM0A
gen0_b: GEN0_B0x54 - Actions triggered by events on PWM0B
dt0_cfg: DT0_CFG0x58 - dead time type selection and configuration
dt0_fed_cfg: DT0_FED_CFG0x5c - Shadow register for falling edge delay (FED).
dt0_red_cfg: DT0_RED_CFG0x60 - Shadow register for rising edge delay (RED).
carrier0_cfg: CARRIER0_CFG0x64 - Carrier enable and configuratoin
fh0_cfg0: FH0_CFG00x68 - Actions on PWM0A and PWM0B trip events
fh0_cfg1: FH0_CFG10x6c - Software triggers for fault handler actions
fh0_status: FH0_STATUS0x70 - Status of fault events.
gen1_stmp_cfg: GEN1_STMP_CFG0x74 - Transfer status and update method for time stamp registers A and B
gen1_tstmp_a: GEN1_TSTMP_A0x78 - Shadow register for register A.
gen1_tstmp_b: GEN1_TSTMP_B0x7c - Shadow register for register B.
gen1_cfg0: GEN1_CFG00x80 - Fault event T0 and T1 handling
gen1_force: GEN1_FORCE0x84 - Permissives to force PWM1A and PWM1B outputs by software
gen1_a: GEN1_A0x88 - Actions triggered by events on PWM1A
gen1_b: GEN1_B0x8c - Actions triggered by events on PWM1B
dt1_cfg: DT1_CFG0x90 - dead time type selection and configuration
dt1_fed_cfg: DT1_FED_CFG0x94 - Shadow register for falling edge delay (FED).
dt1_red_cfg: DT1_RED_CFG0x98 - Shadow register for rising edge delay (RED).
carrier1_cfg: CARRIER1_CFG0x9c - Carrier enable and configuratoin
fh1_cfg0: FH1_CFG00xa0 - Actions on PWM1A and PWM1B trip events
fh1_cfg1: FH1_CFG10xa4 - Software triggers for fault handler actions
fh1_status: FH1_STATUS0xa8 - Status of fault events.
gen2_stmp_cfg: GEN2_STMP_CFG0xac - Transfer status and update method for time stamp registers A and B
gen2_tstmp_a: GEN2_TSTMP_A0xb0 - Shadow register for register A.
gen2_tstmp_b: GEN2_TSTMP_B0xb4 - Shadow register for register B.
gen2_cfg0: GEN2_CFG00xb8 - Fault event T0 and T1 handling
gen2_force: GEN2_FORCE0xbc - Permissives to force PWM2A and PWM2B outputs by software
gen2_a: GEN2_A0xc0 - Actions triggered by events on PWM2A
gen2_b: GEN2_B0xc4 - Actions triggered by events on PWM2B
dt2_cfg: DT2_CFG0xc8 - dead time type selection and configuration
dt2_fed_cfg: DT2_FED_CFG0xcc - Shadow register for falling edge delay (FED).
dt2_red_cfg: DT2_RED_CFG0xd0 - Shadow register for rising edge delay (RED).
carrier2_cfg: CARRIER2_CFG0xd4 - Carrier enable and configuratoin
fh2_cfg0: FH2_CFG00xd8 - Actions on PWM2A and PWM2B trip events
fh2_cfg1: FH2_CFG10xdc - Software triggers for fault handler actions
fh2_status: FH2_STATUS0xe0 - Status of fault events.
fault_detect: FAULT_DETECT0xe4 - Fault detection configuration and status
cap_timer_cfg: CAP_TIMER_CFG0xe8 - Configure capture timer
cap_timer_phase: CAP_TIMER_PHASE0xec - Phase for capture timer sync
cap_ch0_cfg: CAP_CH0_CFG0xf0 - Capture channel 0 configuration and enable
cap_ch1_cfg: CAP_CH1_CFG0xf4 - Capture channel 1 configuration and enable
cap_ch2_cfg: CAP_CH2_CFG0xf8 - Capture channel 2 configuration and enable
cap_ch0: CAP_CH00xfc - ch0 capture value status register
cap_ch1: CAP_CH10x100 - ch1 capture value status register
cap_ch2: CAP_CH20x104 - ch2 capture value status register
cap_status: CAP_STATUS0x108 - Edge of last capture trigger
update_cfg: UPDATE_CFG0x10c - Enable update.
int_ena: INT_ENA0x110 - Interrupt enable bits
int_raw: INT_RAW0x114 - Raw interrupt status
int_st: INT_ST0x118 - Masked interrupt status
int_clr: INT_CLR0x11c - Interrupt clear bits
evt_en: EVT_EN0x120 - MCPWM event enable register
task_en: TASK_EN0x124 - MCPWM task enable register
clk: CLK0x128 - MCPWM APB configuration register
version: VERSION0x12c - Version register.