pub struct W(_);
Expand description
Register COMP2_CSR
writer
Implementations
sourceimpl W
impl W
sourcepub fn comp2_en(&mut self) -> COMP2_EN_W<'_>
pub fn comp2_en(&mut self) -> COMP2_EN_W<'_>
Bit 0 - Comparator 2 enable bit
sourcepub fn comp2_pwrmode(&mut self) -> COMP2_PWRMODE_W<'_>
pub fn comp2_pwrmode(&mut self) -> COMP2_PWRMODE_W<'_>
Bits 2:3 - Power Mode of the comparator 2
sourcepub fn comp2_inmsel(&mut self) -> COMP2_INMSEL_W<'_>
pub fn comp2_inmsel(&mut self) -> COMP2_INMSEL_W<'_>
Bits 4:6 - Comparator 2 Input Minus connection configuration bit
sourcepub fn comp2_inpsel(&mut self) -> COMP2_INPSEL_W<'_>
pub fn comp2_inpsel(&mut self) -> COMP2_INPSEL_W<'_>
Bits 7:8 - Comparator 2 Input Plus connection configuration bit
sourcepub fn comp2_winmode(&mut self) -> COMP2_WINMODE_W<'_>
pub fn comp2_winmode(&mut self) -> COMP2_WINMODE_W<'_>
Bit 9 - Windows mode selection bit
sourcepub fn comp2_polarity(&mut self) -> COMP2_POLARITY_W<'_>
pub fn comp2_polarity(&mut self) -> COMP2_POLARITY_W<'_>
Bit 15 - Comparator 2 polarity selection bit
sourcepub fn comp2_hyst(&mut self) -> COMP2_HYST_W<'_>
pub fn comp2_hyst(&mut self) -> COMP2_HYST_W<'_>
Bits 16:17 - Comparator 2 hysteresis selection bits
sourcepub fn comp2_blanking(&mut self) -> COMP2_BLANKING_W<'_>
pub fn comp2_blanking(&mut self) -> COMP2_BLANKING_W<'_>
Bits 18:20 - Comparator 2 blanking source selection bits
sourcepub fn comp2_brgen(&mut self) -> COMP2_BRGEN_W<'_>
pub fn comp2_brgen(&mut self) -> COMP2_BRGEN_W<'_>
Bit 22 - Scaler bridge enable
sourcepub fn comp2_scalen(&mut self) -> COMP2_SCALEN_W<'_>
pub fn comp2_scalen(&mut self) -> COMP2_SCALEN_W<'_>
Bit 23 - Voltage scaler enable bit
sourcepub fn comp2_inmesel(&mut self) -> COMP2_INMESEL_W<'_>
pub fn comp2_inmesel(&mut self) -> COMP2_INMESEL_W<'_>
Bits 25:26 - comparator 2 input minus extended selection bits
sourcepub fn comp2_lock(&mut self) -> COMP2_LOCK_W<'_>
pub fn comp2_lock(&mut self) -> COMP2_LOCK_W<'_>
Bit 31 - COMP2_CSR register lock bit
Methods from Deref<Target = W<COMP2_CSR_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<COMP2_CSR_SPEC>> for W
impl From<W<COMP2_CSR_SPEC>> for W
sourcefn from(writer: W<COMP2_CSR_SPEC>) -> W
fn from(writer: W<COMP2_CSR_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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