Type Definition stm32g0::stm32g081::comp::comp2_csr::W[][src]

type W = W<u32, COMP2_CSR>;

Writer for register COMP2_CSR

Implementations

impl W[src]

pub fn en(&mut self) -> EN_W<'_>[src]

Bit 0 - COMP channel 1 enable bit

pub fn inmsel(&mut self) -> INMSEL_W<'_>[src]

Bits 4:7 - Comparator 2 signal selector for inverting input INM

pub fn inpsel(&mut self) -> INPSEL_W<'_>[src]

Bits 8:9 - Comparator 2 signal selector for non-inverting input

pub fn winmode(&mut self) -> WINMODE_W<'_>[src]

Bit 11 - Comparator 2 non-inverting input selector for window mode

pub fn winout(&mut self) -> WINOUT_W<'_>[src]

Bit 14 - Comparator 2 output selector

pub fn polarity(&mut self) -> POLARITY_W<'_>[src]

Bit 15 - Comparator 2 polarity selector

pub fn hyst(&mut self) -> HYST_W<'_>[src]

Bits 16:17 - Comparator 2 hysteresis selector

pub fn pwrmode(&mut self) -> PWRMODE_W<'_>[src]

Bits 18:19 - Comparator 2 power mode selector

pub fn blanksel(&mut self) -> BLANKSEL_W<'_>[src]

Bits 20:24 - Comparator 2 blanking source selector

pub fn value(&mut self) -> VALUE_W<'_>[src]

Bit 30 - Comparator 2 output status

pub fn lock(&mut self) -> LOCK_W<'_>[src]

Bit 31 - COMP2_CSR register lock