Struct esp32_hal::pac::pwm0::timer0_sync::W
pub struct W(_);
Expand description
Register TIMER0_SYNC
writer
Implementations§
§impl W
impl W
pub fn timer0_synci_en(
&mut self
) -> BitWriterRaw<'_, u32, TIMER0_SYNC_SPEC, bool, BitM, 0>
pub fn timer0_synci_en(
&mut self
) -> BitWriterRaw<'_, u32, TIMER0_SYNC_SPEC, bool, BitM, 0>
Bit 0
pub fn sw(&mut self) -> BitWriterRaw<'_, u32, TIMER0_SYNC_SPEC, bool, BitM, 1>
pub fn sw(&mut self) -> BitWriterRaw<'_, u32, TIMER0_SYNC_SPEC, bool, BitM, 1>
Bit 1
pub fn timer0_synco_sel(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_SYNC_SPEC, u8, u8, Unsafe, 2, 2>
pub fn timer0_synco_sel(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_SYNC_SPEC, u8, u8, Unsafe, 2, 2>
Bits 2:3
pub fn timer0_phase(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_SYNC_SPEC, u16, u16, Unsafe, 16, 4>
pub fn timer0_phase(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_SYNC_SPEC, u16, u16, Unsafe, 16, 4>
Bits 4:19
pub fn timer0_phase_direction(
&mut self
) -> BitWriterRaw<'_, u32, TIMER0_SYNC_SPEC, bool, BitM, 20>
pub fn timer0_phase_direction(
&mut self
) -> BitWriterRaw<'_, u32, TIMER0_SYNC_SPEC, bool, BitM, 20>
Bit 20
Methods from Deref<Target = W<TIMER0_SYNC_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<TIMER0_SYNC_SPEC>> for W
impl From<W<TIMER0_SYNC_SPEC>> for W
§fn from(writer: W<TIMER0_SYNC_SPEC>) -> W
fn from(writer: W<TIMER0_SYNC_SPEC>) -> W
Converts to this type from the input type.