Struct esp32s3_hal::peripherals::MCPWM1
source · pub struct MCPWM1 { /* private fields */ }
Implementations§
source§impl MCPWM1
impl MCPWM1
sourcepub unsafe fn steal() -> MCPWM1
pub unsafe fn steal() -> MCPWM1
Unsafely create an instance of this peripheral out of thin air.
§Safety
You must ensure that you’re only using one instance of this type at a time.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn clk_cfg(&self) -> &Reg<CLK_CFG_SPEC>
pub fn clk_cfg(&self) -> &Reg<CLK_CFG_SPEC>
0x00 - PWM clock prescaler register.
sourcepub fn timer0_cfg0(&self) -> &Reg<TIMER0_CFG0_SPEC>
pub fn timer0_cfg0(&self) -> &Reg<TIMER0_CFG0_SPEC>
0x04 - PWM timer0 period and update method configuration register.
sourcepub fn timer0_cfg1(&self) -> &Reg<TIMER0_CFG1_SPEC>
pub fn timer0_cfg1(&self) -> &Reg<TIMER0_CFG1_SPEC>
0x08 - PWM timer0 working mode and start/stop control configuration register.
sourcepub fn timer0_sync(&self) -> &Reg<TIMER0_SYNC_SPEC>
pub fn timer0_sync(&self) -> &Reg<TIMER0_SYNC_SPEC>
0x0c - PWM timer0 sync function configuration register.
sourcepub fn timer0_status(&self) -> &Reg<TIMER0_STATUS_SPEC>
pub fn timer0_status(&self) -> &Reg<TIMER0_STATUS_SPEC>
0x10 - PWM timer0 status register.
sourcepub fn timer1_cfg0(&self) -> &Reg<TIMER1_CFG0_SPEC>
pub fn timer1_cfg0(&self) -> &Reg<TIMER1_CFG0_SPEC>
0x14 - PWM timer1 period and update method configuration register.
sourcepub fn timer1_cfg1(&self) -> &Reg<TIMER1_CFG1_SPEC>
pub fn timer1_cfg1(&self) -> &Reg<TIMER1_CFG1_SPEC>
0x18 - PWM timer1 working mode and start/stop control configuration register.
sourcepub fn timer1_sync(&self) -> &Reg<TIMER1_SYNC_SPEC>
pub fn timer1_sync(&self) -> &Reg<TIMER1_SYNC_SPEC>
0x1c - PWM timer1 sync function configuration register.
sourcepub fn timer1_status(&self) -> &Reg<TIMER1_STATUS_SPEC>
pub fn timer1_status(&self) -> &Reg<TIMER1_STATUS_SPEC>
0x20 - PWM timer1 status register.
sourcepub fn timer2_cfg0(&self) -> &Reg<TIMER2_CFG0_SPEC>
pub fn timer2_cfg0(&self) -> &Reg<TIMER2_CFG0_SPEC>
0x24 - PWM timer2 period and update method configuration register.
sourcepub fn timer2_cfg1(&self) -> &Reg<TIMER2_CFG1_SPEC>
pub fn timer2_cfg1(&self) -> &Reg<TIMER2_CFG1_SPEC>
0x28 - PWM timer2 working mode and start/stop control configuration register.
sourcepub fn timer2_sync(&self) -> &Reg<TIMER2_SYNC_SPEC>
pub fn timer2_sync(&self) -> &Reg<TIMER2_SYNC_SPEC>
0x2c - PWM timer2 sync function configuration register.
sourcepub fn timer2_status(&self) -> &Reg<TIMER2_STATUS_SPEC>
pub fn timer2_status(&self) -> &Reg<TIMER2_STATUS_SPEC>
0x30 - PWM timer2 status register.
sourcepub fn timer_synci_cfg(&self) -> &Reg<TIMER_SYNCI_CFG_SPEC>
pub fn timer_synci_cfg(&self) -> &Reg<TIMER_SYNCI_CFG_SPEC>
0x34 - Synchronization input selection for three PWM timers.
sourcepub fn operator_timersel(&self) -> &Reg<OPERATOR_TIMERSEL_SPEC>
pub fn operator_timersel(&self) -> &Reg<OPERATOR_TIMERSEL_SPEC>
0x38 - Select specific timer for PWM operators.
sourcepub fn cmpr0_cfg(&self) -> &Reg<CMPR0_CFG_SPEC>
pub fn cmpr0_cfg(&self) -> &Reg<CMPR0_CFG_SPEC>
0x3c - Transfer status and update method for time stamp registers A and B
sourcepub fn cmpr0_value0(&self) -> &Reg<CMPR0_VALUE0_SPEC>
pub fn cmpr0_value0(&self) -> &Reg<CMPR0_VALUE0_SPEC>
0x40 - Shadow register for register A.
sourcepub fn cmpr0_value1(&self) -> &Reg<CMPR0_VALUE1_SPEC>
pub fn cmpr0_value1(&self) -> &Reg<CMPR0_VALUE1_SPEC>
0x44 - Shadow register for register B.
sourcepub fn gen0_cfg0(&self) -> &Reg<GEN0_CFG0_SPEC>
pub fn gen0_cfg0(&self) -> &Reg<GEN0_CFG0_SPEC>
0x48 - Fault event T0 and T1 handling
sourcepub fn gen0_force(&self) -> &Reg<GEN0_FORCE_SPEC>
pub fn gen0_force(&self) -> &Reg<GEN0_FORCE_SPEC>
0x4c - Permissives to force PWM0A and PWM0B outputs by software
sourcepub fn gen0_a(&self) -> &Reg<GEN0_A_SPEC>
pub fn gen0_a(&self) -> &Reg<GEN0_A_SPEC>
0x50 - Actions triggered by events on PWM0A
sourcepub fn gen0_b(&self) -> &Reg<GEN0_B_SPEC>
pub fn gen0_b(&self) -> &Reg<GEN0_B_SPEC>
0x54 - Actions triggered by events on PWM0B
sourcepub fn db0_cfg(&self) -> &Reg<DB0_CFG_SPEC>
pub fn db0_cfg(&self) -> &Reg<DB0_CFG_SPEC>
0x58 - dead time type selection and configuration
sourcepub fn db0_fed_cfg(&self) -> &Reg<DB0_FED_CFG_SPEC>
pub fn db0_fed_cfg(&self) -> &Reg<DB0_FED_CFG_SPEC>
0x5c - Shadow register for falling edge delay (FED).
sourcepub fn db0_red_cfg(&self) -> &Reg<DB0_RED_CFG_SPEC>
pub fn db0_red_cfg(&self) -> &Reg<DB0_RED_CFG_SPEC>
0x60 - Shadow register for rising edge delay (RED).
sourcepub fn chopper0_cfg(&self) -> &Reg<CHOPPER0_CFG_SPEC>
pub fn chopper0_cfg(&self) -> &Reg<CHOPPER0_CFG_SPEC>
0x64 - Carrier enable and configuratoin
sourcepub fn tz0_cfg0(&self) -> &Reg<TZ0_CFG0_SPEC>
pub fn tz0_cfg0(&self) -> &Reg<TZ0_CFG0_SPEC>
0x68 - Actions on PWM0A and PWM0B trip events
sourcepub fn tz0_cfg1(&self) -> &Reg<TZ0_CFG1_SPEC>
pub fn tz0_cfg1(&self) -> &Reg<TZ0_CFG1_SPEC>
0x6c - Software triggers for fault handler actions
sourcepub fn tz0_status(&self) -> &Reg<TZ0_STATUS_SPEC>
pub fn tz0_status(&self) -> &Reg<TZ0_STATUS_SPEC>
0x70 - Status of fault events.
sourcepub fn cmpr1_cfg(&self) -> &Reg<CMPR1_CFG_SPEC>
pub fn cmpr1_cfg(&self) -> &Reg<CMPR1_CFG_SPEC>
0x74 - Transfer status and update method for time stamp registers A and B
sourcepub fn cmpr1_value0(&self) -> &Reg<CMPR1_VALUE0_SPEC>
pub fn cmpr1_value0(&self) -> &Reg<CMPR1_VALUE0_SPEC>
0x78 - Shadow register for register A.
sourcepub fn cmpr1_value1(&self) -> &Reg<CMPR1_VALUE1_SPEC>
pub fn cmpr1_value1(&self) -> &Reg<CMPR1_VALUE1_SPEC>
0x7c - Shadow register for register B.
sourcepub fn gen1_cfg0(&self) -> &Reg<GEN1_CFG0_SPEC>
pub fn gen1_cfg0(&self) -> &Reg<GEN1_CFG0_SPEC>
0x80 - Fault event T0 and T1 handling
sourcepub fn gen1_force(&self) -> &Reg<GEN1_FORCE_SPEC>
pub fn gen1_force(&self) -> &Reg<GEN1_FORCE_SPEC>
0x84 - Permissives to force PWM1A and PWM1B outputs by software
sourcepub fn gen1_a(&self) -> &Reg<GEN1_A_SPEC>
pub fn gen1_a(&self) -> &Reg<GEN1_A_SPEC>
0x88 - Actions triggered by events on PWM1A
sourcepub fn gen1_b(&self) -> &Reg<GEN1_B_SPEC>
pub fn gen1_b(&self) -> &Reg<GEN1_B_SPEC>
0x8c - Actions triggered by events on PWM1B
sourcepub fn db1_cfg(&self) -> &Reg<DB1_CFG_SPEC>
pub fn db1_cfg(&self) -> &Reg<DB1_CFG_SPEC>
0x90 - dead time type selection and configuration
sourcepub fn db1_fed_cfg(&self) -> &Reg<DB1_FED_CFG_SPEC>
pub fn db1_fed_cfg(&self) -> &Reg<DB1_FED_CFG_SPEC>
0x94 - Shadow register for falling edge delay (FED).
sourcepub fn db1_red_cfg(&self) -> &Reg<DB1_RED_CFG_SPEC>
pub fn db1_red_cfg(&self) -> &Reg<DB1_RED_CFG_SPEC>
0x98 - Shadow register for rising edge delay (RED).
sourcepub fn chopper1_cfg(&self) -> &Reg<CHOPPER1_CFG_SPEC>
pub fn chopper1_cfg(&self) -> &Reg<CHOPPER1_CFG_SPEC>
0x9c - Carrier enable and configuratoin
sourcepub fn tz1_cfg0(&self) -> &Reg<TZ1_CFG0_SPEC>
pub fn tz1_cfg0(&self) -> &Reg<TZ1_CFG0_SPEC>
0xa0 - Actions on PWM1A and PWM1B trip events
sourcepub fn tz1_cfg1(&self) -> &Reg<TZ1_CFG1_SPEC>
pub fn tz1_cfg1(&self) -> &Reg<TZ1_CFG1_SPEC>
0xa4 - Software triggers for fault handler actions
sourcepub fn tz1_status(&self) -> &Reg<TZ1_STATUS_SPEC>
pub fn tz1_status(&self) -> &Reg<TZ1_STATUS_SPEC>
0xa8 - Status of fault events.
sourcepub fn cmpr2_cfg(&self) -> &Reg<CMPR2_CFG_SPEC>
pub fn cmpr2_cfg(&self) -> &Reg<CMPR2_CFG_SPEC>
0xac - Transfer status and update method for time stamp registers A and B
sourcepub fn cmpr2_value0(&self) -> &Reg<CMPR2_VALUE0_SPEC>
pub fn cmpr2_value0(&self) -> &Reg<CMPR2_VALUE0_SPEC>
0xb0 - Shadow register for register A.
sourcepub fn cmpr2_value1(&self) -> &Reg<CMPR2_VALUE1_SPEC>
pub fn cmpr2_value1(&self) -> &Reg<CMPR2_VALUE1_SPEC>
0xb4 - Shadow register for register B.
sourcepub fn gen2_cfg0(&self) -> &Reg<GEN2_CFG0_SPEC>
pub fn gen2_cfg0(&self) -> &Reg<GEN2_CFG0_SPEC>
0xb8 - Fault event T0 and T1 handling
sourcepub fn gen2_force(&self) -> &Reg<GEN2_FORCE_SPEC>
pub fn gen2_force(&self) -> &Reg<GEN2_FORCE_SPEC>
0xbc - Permissives to force PWM2A and PWM2B outputs by software
sourcepub fn gen2_a(&self) -> &Reg<GEN2_A_SPEC>
pub fn gen2_a(&self) -> &Reg<GEN2_A_SPEC>
0xc0 - Actions triggered by events on PWM2A
sourcepub fn gen2_b(&self) -> &Reg<GEN2_B_SPEC>
pub fn gen2_b(&self) -> &Reg<GEN2_B_SPEC>
0xc4 - Actions triggered by events on PWM2B
sourcepub fn db2_cfg(&self) -> &Reg<DB2_CFG_SPEC>
pub fn db2_cfg(&self) -> &Reg<DB2_CFG_SPEC>
0xc8 - dead time type selection and configuration
sourcepub fn db2_fed_cfg(&self) -> &Reg<DB2_FED_CFG_SPEC>
pub fn db2_fed_cfg(&self) -> &Reg<DB2_FED_CFG_SPEC>
0xcc - Shadow register for falling edge delay (FED).
sourcepub fn db2_red_cfg(&self) -> &Reg<DB2_RED_CFG_SPEC>
pub fn db2_red_cfg(&self) -> &Reg<DB2_RED_CFG_SPEC>
0xd0 - Shadow register for rising edge delay (RED).
sourcepub fn chopper2_cfg(&self) -> &Reg<CHOPPER2_CFG_SPEC>
pub fn chopper2_cfg(&self) -> &Reg<CHOPPER2_CFG_SPEC>
0xd4 - Carrier enable and configuratoin
sourcepub fn tz2_cfg0(&self) -> &Reg<TZ2_CFG0_SPEC>
pub fn tz2_cfg0(&self) -> &Reg<TZ2_CFG0_SPEC>
0xd8 - Actions on PWM2A and PWM2B trip events
sourcepub fn tz2_cfg1(&self) -> &Reg<TZ2_CFG1_SPEC>
pub fn tz2_cfg1(&self) -> &Reg<TZ2_CFG1_SPEC>
0xdc - Software triggers for fault handler actions
sourcepub fn tz2_status(&self) -> &Reg<TZ2_STATUS_SPEC>
pub fn tz2_status(&self) -> &Reg<TZ2_STATUS_SPEC>
0xe0 - Status of fault events.
sourcepub fn fault_detect(&self) -> &Reg<FAULT_DETECT_SPEC>
pub fn fault_detect(&self) -> &Reg<FAULT_DETECT_SPEC>
0xe4 - Fault detection configuration and status
sourcepub fn cap_timer_cfg(&self) -> &Reg<CAP_TIMER_CFG_SPEC>
pub fn cap_timer_cfg(&self) -> &Reg<CAP_TIMER_CFG_SPEC>
0xe8 - Configure capture timer
sourcepub fn cap_timer_phase(&self) -> &Reg<CAP_TIMER_PHASE_SPEC>
pub fn cap_timer_phase(&self) -> &Reg<CAP_TIMER_PHASE_SPEC>
0xec - Phase for capture timer sync
sourcepub fn cap_ch0_cfg(&self) -> &Reg<CAP_CH0_CFG_SPEC>
pub fn cap_ch0_cfg(&self) -> &Reg<CAP_CH0_CFG_SPEC>
0xf0 - Capture channel 0 configuration and enable
sourcepub fn cap_ch1_cfg(&self) -> &Reg<CAP_CH1_CFG_SPEC>
pub fn cap_ch1_cfg(&self) -> &Reg<CAP_CH1_CFG_SPEC>
0xf4 - Capture channel 1 configuration and enable
sourcepub fn cap_ch2_cfg(&self) -> &Reg<CAP_CH2_CFG_SPEC>
pub fn cap_ch2_cfg(&self) -> &Reg<CAP_CH2_CFG_SPEC>
0xf8 - Capture channel 2 configuration and enable
sourcepub fn cap_ch0(&self) -> &Reg<CAP_CH0_SPEC>
pub fn cap_ch0(&self) -> &Reg<CAP_CH0_SPEC>
0xfc - Value of last capture on channel 0
sourcepub fn cap_ch1(&self) -> &Reg<CAP_CH1_SPEC>
pub fn cap_ch1(&self) -> &Reg<CAP_CH1_SPEC>
0x100 - Value of last capture on channel 1
sourcepub fn cap_ch2(&self) -> &Reg<CAP_CH2_SPEC>
pub fn cap_ch2(&self) -> &Reg<CAP_CH2_SPEC>
0x104 - Value of last capture on channel 2
sourcepub fn cap_status(&self) -> &Reg<CAP_STATUS_SPEC>
pub fn cap_status(&self) -> &Reg<CAP_STATUS_SPEC>
0x108 - Edge of last capture trigger
sourcepub fn update_cfg(&self) -> &Reg<UPDATE_CFG_SPEC>
pub fn update_cfg(&self) -> &Reg<UPDATE_CFG_SPEC>
0x10c - Enable update.
sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0x110 - Interrupt enable bits
sourcepub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0x114 - Raw interrupt status
sourcepub fn int_st(&self) -> &Reg<INT_ST_SPEC>
pub fn int_st(&self) -> &Reg<INT_ST_SPEC>
0x118 - Masked interrupt status
sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0x11c - Interrupt clear bits
sourcepub fn version(&self) -> &Reg<VERSION_SPEC>
pub fn version(&self) -> &Reg<VERSION_SPEC>
0x124 - Version register.