Struct esp32s3_hal::pac::pwm0::update_cfg::W
pub struct W(_);
Expand description
Register UPDATE_CFG
writer
Implementations§
§impl W
impl W
pub fn global_up_en(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 0>
pub fn global_up_en(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 0>
Bit 0 - The global enable of update of all active registers in MCPWM module
pub fn global_force_up(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 1>
pub fn global_force_up(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 1>
Bit 1 - a toggle (software invert its value) will trigger a forced update of all active registers in MCPWM module
pub fn op0_up_en(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 2>
pub fn op0_up_en(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 2>
Bit 2 - When set and PWM_GLOBAL_UP_EN is set, update of active registers in PWM operator 0 are enabled
pub fn op0_force_up(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 3>
pub fn op0_force_up(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 3>
Bit 3 - a toggle (software invert its value) will trigger a forced update of active registers in PWM operator 0
pub fn op1_up_en(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 4>
pub fn op1_up_en(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 4>
Bit 4 - When set and PWM_GLOBAL_UP_EN is set, update of active registers in PWM operator 1 are enabled
pub fn op1_force_up(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 5>
pub fn op1_force_up(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 5>
Bit 5 - a toggle (software invert its value) will trigger a forced update of active registers in PWM operator 1
pub fn op2_up_en(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 6>
pub fn op2_up_en(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 6>
Bit 6 - When set and PWM_GLOBAL_UP_EN is set, update of active registers in PWM operator 2 are enabled
pub fn op2_force_up(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 7>
pub fn op2_force_up(
&mut self
) -> BitWriterRaw<'_, u32, UPDATE_CFG_SPEC, bool, BitM, 7>
Bit 7 - a toggle (software invert its value) will trigger a forced update of active registers in PWM operator 2
Methods from Deref<Target = W<UPDATE_CFG_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.