pub struct W(_);
Expand description
Register CFGR2
writer
Implementations
sourceimpl W
impl W
sourcepub fn en(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 0>
pub fn en(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 0>
Bit 0 - COMP channel 1 enable bit
sourcepub fn brgen(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 1>
pub fn brgen(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 1>
Bit 1 - Scaler bridge enable
sourcepub fn scalen(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 2>
pub fn scalen(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 2>
Bit 2 - Voltage scaler enable bit
sourcepub fn polarity(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 3>
pub fn polarity(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 3>
Bit 3 - COMP channel 1 polarity selection bit
sourcepub fn winmode(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 4>
pub fn winmode(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 4>
Bit 4 - Window comparator mode selection bit
sourcepub fn iten(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 6>
pub fn iten(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 6>
Bit 6 - COMP channel 1 interrupt enable
sourcepub fn hyst(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u8, u8, Unsafe, 2, 8>
pub fn hyst(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u8, u8, Unsafe, 2, 8>
Bits 8:9 - COMP channel 1 hysteresis selection bits
sourcepub fn pwrmode(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u8, u8, Unsafe, 2, 12>
pub fn pwrmode(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u8, u8, Unsafe, 2, 12>
Bits 12:13 - Power Mode of the COMP channel 1
sourcepub fn inmsel(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u8, u8, Unsafe, 3, 16>
pub fn inmsel(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u8, u8, Unsafe, 3, 16>
Bits 16:18 - COMP channel 1 inverting input selection field
sourcepub fn inpsel(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 20>
pub fn inpsel(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 20>
Bit 20 - COMP channel 1 non-inverting input selection bit
sourcepub fn blanking(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u8, u8, Unsafe, 4, 24>
pub fn blanking(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u8, u8, Unsafe, 4, 24>
Bits 24:27 - COMP channel 1 blanking source selection bits
sourcepub fn lock(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 31>
pub fn lock(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, bool, BitM, 31>
Bit 31 - Lock bit
Methods from Deref<Target = W<CFGR2_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
sourceimpl From<W<CFGR2_SPEC>> for W
impl From<W<CFGR2_SPEC>> for W
sourcefn from(writer: W<CFGR2_SPEC>) -> W
fn from(writer: W<CFGR2_SPEC>) -> W
Converts to this type from the input type.
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