pub struct W(_);
Expand description
Register COMP1_CSR
writer
Implementations
sourceimpl W
impl W
sourcepub fn comp1_en(&mut self) -> COMP1_EN_W<'_>
pub fn comp1_en(&mut self) -> COMP1_EN_W<'_>
Bit 0 - Comparator 1 enable bit
sourcepub fn comp1_pwrmode(&mut self) -> COMP1_PWRMODE_W<'_>
pub fn comp1_pwrmode(&mut self) -> COMP1_PWRMODE_W<'_>
Bits 2:3 - Power Mode of the comparator 1
sourcepub fn comp1_inmsel(&mut self) -> COMP1_INMSEL_W<'_>
pub fn comp1_inmsel(&mut self) -> COMP1_INMSEL_W<'_>
Bits 4:6 - Comparator 1 Input Minus connection configuration bit
sourcepub fn comp1_inpsel(&mut self) -> COMP1_INPSEL_W<'_>
pub fn comp1_inpsel(&mut self) -> COMP1_INPSEL_W<'_>
Bits 7:8 - Comparator1 input plus selection bit
sourcepub fn comp1_polarity(&mut self) -> COMP1_POLARITY_W<'_>
pub fn comp1_polarity(&mut self) -> COMP1_POLARITY_W<'_>
Bit 15 - Comparator 1 polarity selection bit
sourcepub fn comp1_hyst(&mut self) -> COMP1_HYST_W<'_>
pub fn comp1_hyst(&mut self) -> COMP1_HYST_W<'_>
Bits 16:17 - Comparator 1 hysteresis selection bits
sourcepub fn comp1_blanking(&mut self) -> COMP1_BLANKING_W<'_>
pub fn comp1_blanking(&mut self) -> COMP1_BLANKING_W<'_>
Bits 18:20 - Comparator 1 blanking source selection bits
sourcepub fn comp1_brgen(&mut self) -> COMP1_BRGEN_W<'_>
pub fn comp1_brgen(&mut self) -> COMP1_BRGEN_W<'_>
Bit 22 - Scaler bridge enable
sourcepub fn comp1_scalen(&mut self) -> COMP1_SCALEN_W<'_>
pub fn comp1_scalen(&mut self) -> COMP1_SCALEN_W<'_>
Bit 23 - Voltage scaler enable bit
sourcepub fn comp1_inmesel(&mut self) -> COMP1_INMESEL_W<'_>
pub fn comp1_inmesel(&mut self) -> COMP1_INMESEL_W<'_>
Bits 25:26 - comparator 1 input minus extended selection bits
sourcepub fn comp1_lock(&mut self) -> COMP1_LOCK_W<'_>
pub fn comp1_lock(&mut self) -> COMP1_LOCK_W<'_>
Bit 31 - COMP1_CSR register lock bit
Methods from Deref<Target = W<COMP1_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<COMP1_CSR_SPEC>> for W
impl From<W<COMP1_CSR_SPEC>> for W
sourcefn from(writer: W<COMP1_CSR_SPEC>) -> W
fn from(writer: W<COMP1_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