pub struct W(_);
Expand description
Register COMP3_CSR
writer
Implementations
sourceimpl W
impl W
sourcepub fn en(&mut self) -> EN_W<'_, 0>
pub fn en(&mut self) -> EN_W<'_, 0>
Bit 0 - Comparator 3 enable bit This bit is controlled by software (if not locked). It enables the comparator 3:
sourcepub fn inmsel(&mut self) -> INMSEL_W<'_, 4>
pub fn inmsel(&mut self) -> INMSEL_W<'_, 4>
Bits 4:7 - Comparator 3 signal selector for inverting input INM This bitfield is controlled by software (if not locked). It selects the signal for the inverting input COMP3_INM of the comparator 3: > 1000: 1/4 VREFINT
sourcepub fn inpsel(&mut self) -> INPSEL_W<'_, 8>
pub fn inpsel(&mut self) -> INPSEL_W<'_, 8>
Bits 8:9 - Comparator 3 signal selector for non-inverting input This bitfield is controlled by software (if not locked). It selects the signal for the non-inverting input COMP3_INP of the comparator 3 (also see the WINMODE bit):
sourcepub fn winmode(&mut self) -> WINMODE_W<'_, 11>
pub fn winmode(&mut self) -> WINMODE_W<'_, 11>
Bit 11 - Comparator 3 non-inverting input selector for window mode This bit is controlled by software (if not locked). It selects the signal for COMP3_INP input of the comparator 3:
sourcepub fn winout(&mut self) -> WINOUT_W<'_, 14>
pub fn winout(&mut self) -> WINOUT_W<'_, 14>
Bit 14 - Comparator 3 output selector This bit is controlled by software (if not locked). It selects the comparator 3 output:
sourcepub fn polarity(&mut self) -> POLARITY_W<'_, 15>
pub fn polarity(&mut self) -> POLARITY_W<'_, 15>
Bit 15 - Comparator 2 polarity selector This bit is controlled by software (if not locked). It selects the comparator 3 output polarity:
sourcepub fn hyst(&mut self) -> HYST_W<'_, 16>
pub fn hyst(&mut self) -> HYST_W<'_, 16>
Bits 16:17 - Comparator 3 hysteresis selector This bitfield is controlled by software (if not locked). It selects the hysteresis of the comparator 3:
sourcepub fn pwrmode(&mut self) -> PWRMODE_W<'_, 18>
pub fn pwrmode(&mut self) -> PWRMODE_W<'_, 18>
Bits 18:19 - Comparator 3 power mode selector This bitfield is controlled by software (if not locked). It selects the power consumption and as a consequence the speed of the comparator 3: others: Reserved
sourcepub fn blanksel(&mut self) -> BLANKSEL_W<'_, 20>
pub fn blanksel(&mut self) -> BLANKSEL_W<'_, 20>
Bits 20:24 - Comparator 3 blanking source selector This bitfield is controlled by software (if not locked). It selects the blanking source: xxxx1: TIM1 OC4 xxx1x: TIM1 OC5 xx1xx: TIM2 OC3 x1xxx: TIM3 OC3 1xxxx: TIM15 OC2
Methods from Deref<Target = W<COMP3_CSR_SPEC>>
Trait Implementations
sourceimpl From<W<COMP3_CSR_SPEC>> for W
impl From<W<COMP3_CSR_SPEC>> for W
sourcefn from(writer: W<COMP3_CSR_SPEC>) -> Self
fn from(writer: W<COMP3_CSR_SPEC>) -> Self
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