[][src]Struct stm32g0::stm32g0x0::comp::comp1_csr::W

pub struct W { /* fields omitted */ }

Value to write to the register

Methods

impl W[src]

pub fn reset_value() -> W[src]

Reset value of the register

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self[src]

Writes raw bits to the register

pub fn en(&mut self) -> _ENW[src]

Bit 0 - COMP channel 1 enable bit

pub fn inmsel(&mut self) -> _INMSELW[src]

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

pub fn inpsel(&mut self) -> _INPSELW[src]

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

pub fn winmode(&mut self) -> _WINMODEW[src]

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

pub fn winout(&mut self) -> _WINOUTW[src]

Bit 14 - Comparator 2 output selector

pub fn polarity(&mut self) -> _POLARITYW[src]

Bit 15 - Comparator 2 polarity selector

pub fn hyst(&mut self) -> _HYSTW[src]

Bits 16:17 - Comparator 2 hysteresis selector

pub fn pwrmode(&mut self) -> _PWRMODEW[src]

Bits 18:19 - Comparator 2 power mode selector

pub fn blanksel(&mut self) -> _BLANKSELW[src]

Bits 20:24 - Comparator 2 blanking source selector

pub fn value(&mut self) -> _VALUEW[src]

Bit 30 - Comparator 2 output status

pub fn lock(&mut self) -> _LOCKW[src]

Bit 31 - COMP2_CSR register lock

Auto Trait Implementations

impl Send for W

impl Sync for W

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self