pub struct W(/* private fields */);Expand description
Register COMP1_CSR writer
Implementations§
Source§impl 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§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more