Struct esp32c6::mcpwm0::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock { /* private fields */ }Expand description
Register block
Implementations§
source§impl RegisterBlock
impl RegisterBlock
sourcepub const fn timer0_cfg0(&self) -> &TIMER0_CFG0
pub const fn timer0_cfg0(&self) -> &TIMER0_CFG0
0x04 - PWM timer0 period and update method configuration register.
sourcepub const fn timer0_cfg1(&self) -> &TIMER0_CFG1
pub const fn timer0_cfg1(&self) -> &TIMER0_CFG1
0x08 - PWM timer0 working mode and start/stop control configuration register.
sourcepub const fn timer0_sync(&self) -> &TIMER0_SYNC
pub const fn timer0_sync(&self) -> &TIMER0_SYNC
0x0c - PWM timer0 sync function configuration register.
sourcepub const fn timer0_status(&self) -> &TIMER0_STATUS
pub const fn timer0_status(&self) -> &TIMER0_STATUS
0x10 - PWM timer0 status register.
sourcepub const fn timer1_cfg0(&self) -> &TIMER1_CFG0
pub const fn timer1_cfg0(&self) -> &TIMER1_CFG0
0x14 - PWM timer1 period and update method configuration register.
sourcepub const fn timer1_cfg1(&self) -> &TIMER1_CFG1
pub const fn timer1_cfg1(&self) -> &TIMER1_CFG1
0x18 - PWM timer1 working mode and start/stop control configuration register.
sourcepub const fn timer1_sync(&self) -> &TIMER1_SYNC
pub const fn timer1_sync(&self) -> &TIMER1_SYNC
0x1c - PWM timer1 sync function configuration register.
sourcepub const fn timer1_status(&self) -> &TIMER1_STATUS
pub const fn timer1_status(&self) -> &TIMER1_STATUS
0x20 - PWM timer1 status register.
sourcepub const fn timer2_cfg0(&self) -> &TIMER2_CFG0
pub const fn timer2_cfg0(&self) -> &TIMER2_CFG0
0x24 - PWM timer2 period and update method configuration register.
sourcepub const fn timer2_cfg1(&self) -> &TIMER2_CFG1
pub const fn timer2_cfg1(&self) -> &TIMER2_CFG1
0x28 - PWM timer2 working mode and start/stop control configuration register.
sourcepub const fn timer2_sync(&self) -> &TIMER2_SYNC
pub const fn timer2_sync(&self) -> &TIMER2_SYNC
0x2c - PWM timer2 sync function configuration register.
sourcepub const fn timer2_status(&self) -> &TIMER2_STATUS
pub const fn timer2_status(&self) -> &TIMER2_STATUS
0x30 - PWM timer2 status register.
sourcepub const fn timer_synci_cfg(&self) -> &TIMER_SYNCI_CFG
pub const fn timer_synci_cfg(&self) -> &TIMER_SYNCI_CFG
0x34 - Synchronization input selection for three PWM timers.
sourcepub const fn operator_timersel(&self) -> &OPERATOR_TIMERSEL
pub const fn operator_timersel(&self) -> &OPERATOR_TIMERSEL
0x38 - Select specific timer for PWM operators.
sourcepub const fn gen0_stmp_cfg(&self) -> &GEN0_STMP_CFG
pub const fn gen0_stmp_cfg(&self) -> &GEN0_STMP_CFG
0x3c - Transfer status and update method for time stamp registers A and B
sourcepub const fn gen0_tstmp_a(&self) -> &GEN0_TSTMP_A
pub const fn gen0_tstmp_a(&self) -> &GEN0_TSTMP_A
0x40 - Shadow register for register A.
sourcepub const fn gen0_tstmp_b(&self) -> &GEN0_TSTMP_B
pub const fn gen0_tstmp_b(&self) -> &GEN0_TSTMP_B
0x44 - Shadow register for register B.
sourcepub const fn gen0_force(&self) -> &GEN0_FORCE
pub const fn gen0_force(&self) -> &GEN0_FORCE
0x4c - Permissives to force PWM0A and PWM0B outputs by software
sourcepub const fn dt0_fed_cfg(&self) -> &DT0_FED_CFG
pub const fn dt0_fed_cfg(&self) -> &DT0_FED_CFG
0x5c - Shadow register for falling edge delay (FED).
sourcepub const fn dt0_red_cfg(&self) -> &DT0_RED_CFG
pub const fn dt0_red_cfg(&self) -> &DT0_RED_CFG
0x60 - Shadow register for rising edge delay (RED).
sourcepub const fn carrier0_cfg(&self) -> &CARRIER0_CFG
pub const fn carrier0_cfg(&self) -> &CARRIER0_CFG
0x64 - Carrier enable and configuratoin
sourcepub const fn fh0_status(&self) -> &FH0_STATUS
pub const fn fh0_status(&self) -> &FH0_STATUS
0x70 - Status of fault events.
sourcepub const fn gen1_stmp_cfg(&self) -> &GEN1_STMP_CFG
pub const fn gen1_stmp_cfg(&self) -> &GEN1_STMP_CFG
0x74 - Transfer status and update method for time stamp registers A and B
sourcepub const fn gen1_tstmp_a(&self) -> &GEN1_TSTMP_A
pub const fn gen1_tstmp_a(&self) -> &GEN1_TSTMP_A
0x78 - Shadow register for register A.
sourcepub const fn gen1_tstmp_b(&self) -> &GEN1_TSTMP_B
pub const fn gen1_tstmp_b(&self) -> &GEN1_TSTMP_B
0x7c - Shadow register for register B.
sourcepub const fn gen1_force(&self) -> &GEN1_FORCE
pub const fn gen1_force(&self) -> &GEN1_FORCE
0x84 - Permissives to force PWM1A and PWM1B outputs by software
sourcepub const fn dt1_fed_cfg(&self) -> &DT1_FED_CFG
pub const fn dt1_fed_cfg(&self) -> &DT1_FED_CFG
0x94 - Shadow register for falling edge delay (FED).
sourcepub const fn dt1_red_cfg(&self) -> &DT1_RED_CFG
pub const fn dt1_red_cfg(&self) -> &DT1_RED_CFG
0x98 - Shadow register for rising edge delay (RED).
sourcepub const fn carrier1_cfg(&self) -> &CARRIER1_CFG
pub const fn carrier1_cfg(&self) -> &CARRIER1_CFG
0x9c - Carrier enable and configuratoin
sourcepub const fn fh1_status(&self) -> &FH1_STATUS
pub const fn fh1_status(&self) -> &FH1_STATUS
0xa8 - Status of fault events.
sourcepub const fn gen2_stmp_cfg(&self) -> &GEN2_STMP_CFG
pub const fn gen2_stmp_cfg(&self) -> &GEN2_STMP_CFG
0xac - Transfer status and update method for time stamp registers A and B
sourcepub const fn gen2_tstmp_a(&self) -> &GEN2_TSTMP_A
pub const fn gen2_tstmp_a(&self) -> &GEN2_TSTMP_A
0xb0 - Shadow register for register A.
sourcepub const fn gen2_tstmp_b(&self) -> &GEN2_TSTMP_B
pub const fn gen2_tstmp_b(&self) -> &GEN2_TSTMP_B
0xb4 - Shadow register for register B.
sourcepub const fn gen2_force(&self) -> &GEN2_FORCE
pub const fn gen2_force(&self) -> &GEN2_FORCE
0xbc - Permissives to force PWM2A and PWM2B outputs by software
sourcepub const fn dt2_fed_cfg(&self) -> &DT2_FED_CFG
pub const fn dt2_fed_cfg(&self) -> &DT2_FED_CFG
0xcc - Shadow register for falling edge delay (FED).
sourcepub const fn dt2_red_cfg(&self) -> &DT2_RED_CFG
pub const fn dt2_red_cfg(&self) -> &DT2_RED_CFG
0xd0 - Shadow register for rising edge delay (RED).
sourcepub const fn carrier2_cfg(&self) -> &CARRIER2_CFG
pub const fn carrier2_cfg(&self) -> &CARRIER2_CFG
0xd4 - Carrier enable and configuratoin
sourcepub const fn fh2_status(&self) -> &FH2_STATUS
pub const fn fh2_status(&self) -> &FH2_STATUS
0xe0 - Status of fault events.
sourcepub const fn fault_detect(&self) -> &FAULT_DETECT
pub const fn fault_detect(&self) -> &FAULT_DETECT
0xe4 - Fault detection configuration and status
sourcepub const fn cap_timer_cfg(&self) -> &CAP_TIMER_CFG
pub const fn cap_timer_cfg(&self) -> &CAP_TIMER_CFG
0xe8 - Configure capture timer
sourcepub const fn cap_timer_phase(&self) -> &CAP_TIMER_PHASE
pub const fn cap_timer_phase(&self) -> &CAP_TIMER_PHASE
0xec - Phase for capture timer sync
sourcepub const fn cap_ch0_cfg(&self) -> &CAP_CH0_CFG
pub const fn cap_ch0_cfg(&self) -> &CAP_CH0_CFG
0xf0 - Capture channel 0 configuration and enable
sourcepub const fn cap_ch1_cfg(&self) -> &CAP_CH1_CFG
pub const fn cap_ch1_cfg(&self) -> &CAP_CH1_CFG
0xf4 - Capture channel 1 configuration and enable
sourcepub const fn cap_ch2_cfg(&self) -> &CAP_CH2_CFG
pub const fn cap_ch2_cfg(&self) -> &CAP_CH2_CFG
0xf8 - Capture channel 2 configuration and enable
sourcepub const fn cap_status(&self) -> &CAP_STATUS
pub const fn cap_status(&self) -> &CAP_STATUS
0x108 - Edge of last capture trigger
sourcepub const fn update_cfg(&self) -> &UPDATE_CFG
pub const fn update_cfg(&self) -> &UPDATE_CFG
0x10c - Enable update.