pub struct W(_);
Expand description
Register CFGR
writer
Implementations
sourceimpl W
impl W
sourcepub fn enc(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, ENC_A, BitM, 24>
pub fn enc(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, ENC_A, BitM, 24>
Bit 24 - Encoder mode enable
sourcepub fn countmode(
&mut self
) -> BitWriterRaw<'_, u32, CFGR_SPEC, COUNTMODE_A, BitM, 23>
pub fn countmode(
&mut self
) -> BitWriterRaw<'_, u32, CFGR_SPEC, COUNTMODE_A, BitM, 23>
Bit 23 - counter mode enabled
sourcepub fn preload(
&mut self
) -> BitWriterRaw<'_, u32, CFGR_SPEC, PRELOAD_A, BitM, 22>
pub fn preload(
&mut self
) -> BitWriterRaw<'_, u32, CFGR_SPEC, PRELOAD_A, BitM, 22>
Bit 22 - Registers update mode
sourcepub fn wavpol(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, WAVPOL_A, BitM, 21>
pub fn wavpol(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, WAVPOL_A, BitM, 21>
Bit 21 - Waveform shape polarity
sourcepub fn wave(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, WAVE_A, BitM, 20>
pub fn wave(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, WAVE_A, BitM, 20>
Bit 20 - Waveform shape
sourcepub fn timout(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, TIMOUT_A, BitM, 19>
pub fn timout(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, TIMOUT_A, BitM, 19>
Bit 19 - Timeout enable
sourcepub fn trigen(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, TRIGEN_A, Safe, 2, 17>
pub fn trigen(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, TRIGEN_A, Safe, 2, 17>
Bits 17:18 - Trigger enable and polarity
sourcepub fn trigsel(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, TRIGSEL_A, Safe, 3, 13>
pub fn trigsel(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, TRIGSEL_A, Safe, 3, 13>
Bits 13:15 - Trigger selector
sourcepub fn presc(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PRESC_A, Safe, 3, 9>
pub fn presc(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PRESC_A, Safe, 3, 9>
Bits 9:11 - Clock prescaler
sourcepub fn trgflt(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, TRGFLT_A, Safe, 2, 6>
pub fn trgflt(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, TRGFLT_A, Safe, 2, 6>
Bits 6:7 - Configurable digital filter for trigger
sourcepub fn ckflt(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, CKFLT_A, Safe, 2, 3>
pub fn ckflt(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, CKFLT_A, Safe, 2, 3>
Bits 3:4 - Configurable digital filter for external clock
sourcepub fn ckpol(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, CKPOL_A, Unsafe, 2, 1>
pub fn ckpol(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, CKPOL_A, Unsafe, 2, 1>
Bits 1:2 - Clock Polarity
Methods from Deref<Target = W<CFGR_SPEC>>
sourcepub 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.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more