Type Alias esp32c6::mcpwm0::gen2_force::W

source ·
pub type W = W<GEN2_FORCE_SPEC>;
Expand description

Register GEN2_FORCE writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn gen2_cntuforce_upmethod( &mut self ) -> GEN2_CNTUFORCE_UPMETHOD_W<'_, GEN2_FORCE_SPEC>

Bits 0:5 - Updating method for continuous software force of PWM generator 2. When all bits are set to 0: immediately, when bit0 is set to 1: TEZ,when bit1 is set to 1: TEP, when bit2 is set to 1: TEA, when bit3 is set to 1: TEB, when bit4 is set to 1: sync, when bit5 is set to 1: disable update. (TEA/B here and below means an event generated when the timer’s value equals to that of register A/B.)

source

pub fn gen2_a_cntuforce_mode( &mut self ) -> GEN2_A_CNTUFORCE_MODE_W<'_, GEN2_FORCE_SPEC>

Bits 6:7 - Continuous software force mode for PWM2A. 0: disabled, 1: low, 2: high, 3: disabled

source

pub fn gen2_b_cntuforce_mode( &mut self ) -> GEN2_B_CNTUFORCE_MODE_W<'_, GEN2_FORCE_SPEC>

Bits 8:9 - Continuous software force mode for PWM2B. 0: disabled, 1: low, 2: high, 3: disabled

source

pub fn gen2_a_nciforce(&mut self) -> GEN2_A_NCIFORCE_W<'_, GEN2_FORCE_SPEC>

Bit 10 - Trigger of non-continuous immediate software-force event for PWM2A, a toggle will trigger a force event.

source

pub fn gen2_a_nciforce_mode( &mut self ) -> GEN2_A_NCIFORCE_MODE_W<'_, GEN2_FORCE_SPEC>

Bits 11:12 - non-continuous immediate software force mode for PWM2A, 0: disabled, 1: low, 2: high, 3: disabled

source

pub fn gen2_b_nciforce(&mut self) -> GEN2_B_NCIFORCE_W<'_, GEN2_FORCE_SPEC>

Bit 13 - Trigger of non-continuous immediate software-force event for PWM2B, a toggle will trigger a force event.

source

pub fn gen2_b_nciforce_mode( &mut self ) -> GEN2_B_NCIFORCE_MODE_W<'_, GEN2_FORCE_SPEC>

Bits 14:15 - non-continuous immediate software force mode for PWM2B, 0: disabled, 1: low, 2: high, 3: disabled

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual