pub type R = R<COMP2_CSRrs>;
Expand description
Register COMP2_CSR
reader
Aliased Type§
pub struct R { /* private fields */ }
Implementations§
Source§impl R
impl R
Sourcepub fn en(&self) -> EN_R
pub fn en(&self) -> EN_R
Bit 0 - Comparator 2 enable bit This bit is controlled by software (if not locked). It enables the comparator 2:
Sourcepub fn inmsel(&self) -> INMSEL_R
pub fn inmsel(&self) -> INMSEL_R
Bits 4:7 - Comparator 2 signal selector for inverting input INM This bitfield is controlled by software (if not locked). It selects the signal for the inverting input COMP2_INM of the comparator 2: > 1000: 1/4 VREFINT
Sourcepub fn inpsel(&self) -> INPSEL_R
pub fn inpsel(&self) -> INPSEL_R
Bits 8:9 - Comparator 2 signal selector for non-inverting input This bitfield is controlled by software (if not locked). It selects the signal for the non-inverting input COMP2_INP of the comparator 2 (also see the WINMODE bit):
Sourcepub fn winmode(&self) -> WINMODE_R
pub fn winmode(&self) -> WINMODE_R
Bit 11 - Comparator 2 non-inverting input selector for window mode This bit is controlled by software (if not locked). It selects the signal for COMP2_INP input of the comparator 2:
Sourcepub fn winout(&self) -> WINOUT_R
pub fn winout(&self) -> WINOUT_R
Bit 14 - Comparator 2 output selector This bit is controlled by software (if not locked). It selects the comparator 2 output:
Sourcepub fn polarity(&self) -> POLARITY_R
pub fn polarity(&self) -> POLARITY_R
Bit 15 - Comparator 2 polarity selector This bit is controlled by software (if not locked). It selects the comparator 2 output polarity:
Sourcepub fn hyst(&self) -> HYST_R
pub fn hyst(&self) -> HYST_R
Bits 16:17 - Comparator 2 hysteresis selector This bitfield is controlled by software (if not locked). It selects the hysteresis of the comparator 2:
Sourcepub fn pwrmode(&self) -> PWRMODE_R
pub fn pwrmode(&self) -> PWRMODE_R
Bits 18:19 - Comparator 2 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 2: others: Reserved
Sourcepub fn blanksel(&self) -> BLANKSEL_R
pub fn blanksel(&self) -> BLANKSEL_R
Bits 20:24 - Comparator 2 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