pub struct W(/* private fields */);Expand description
Register COMP2_CSR writer
Implementations§
Source§impl 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§
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