Struct esp32s3_hal::pac::pwm0::operator_timersel::W
pub struct W(_);
Expand description
Register OPERATOR_TIMERSEL
writer
Implementations§
§impl W
impl W
pub fn operator0_timersel(
&mut self
) -> FieldWriterRaw<'_, u32, OPERATOR_TIMERSEL_SPEC, u8, u8, Unsafe, 2, 0>
pub fn operator0_timersel(
&mut self
) -> FieldWriterRaw<'_, u32, OPERATOR_TIMERSEL_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - Select which PWM timer’s is the timing reference for PWM operator0, 0: timer0, 1: timer1, 2: timer2
pub fn operator1_timersel(
&mut self
) -> FieldWriterRaw<'_, u32, OPERATOR_TIMERSEL_SPEC, u8, u8, Unsafe, 2, 2>
pub fn operator1_timersel(
&mut self
) -> FieldWriterRaw<'_, u32, OPERATOR_TIMERSEL_SPEC, u8, u8, Unsafe, 2, 2>
Bits 2:3 - Select which PWM timer’s is the timing reference for PWM operator1, 0: timer0, 1: timer1, 2: timer2
pub fn operator2_timersel(
&mut self
) -> FieldWriterRaw<'_, u32, OPERATOR_TIMERSEL_SPEC, u8, u8, Unsafe, 2, 4>
pub fn operator2_timersel(
&mut self
) -> FieldWriterRaw<'_, u32, OPERATOR_TIMERSEL_SPEC, u8, u8, Unsafe, 2, 4>
Bits 4:5 - Select which PWM timer’s is the timing reference for PWM operator2, 0: timer0, 1: timer1, 2: timer2
Methods from Deref<Target = W<OPERATOR_TIMERSEL_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<OPERATOR_TIMERSEL_SPEC>> for W
impl From<W<OPERATOR_TIMERSEL_SPEC>> for W
§fn from(writer: W<OPERATOR_TIMERSEL_SPEC>) -> W
fn from(writer: W<OPERATOR_TIMERSEL_SPEC>) -> W
Converts to this type from the input type.