Struct esp32_hal::pac::pwm0::timer2_cfg1::W
pub struct W(_);
Expand description
Register TIMER2_CFG1
writer
Implementations§
§impl W
impl W
pub fn timer2_start(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER2_CFG1_SPEC, u8, u8, Unsafe, 3, 0>
pub fn timer2_start(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER2_CFG1_SPEC, u8, u8, Unsafe, 3, 0>
Bits 0:2
pub fn timer2_mod(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER2_CFG1_SPEC, u8, u8, Unsafe, 2, 3>
pub fn timer2_mod(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER2_CFG1_SPEC, u8, u8, Unsafe, 2, 3>
Bits 3:4
Methods from Deref<Target = W<TIMER2_CFG1_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.
Trait Implementations§
§impl From<W<TIMER2_CFG1_SPEC>> for W
impl From<W<TIMER2_CFG1_SPEC>> for W
§fn from(writer: W<TIMER2_CFG1_SPEC>) -> W
fn from(writer: W<TIMER2_CFG1_SPEC>) -> W
Converts to this type from the input type.