[][src]Struct stm32g0::stm32g0x0::comp::comp2_csr::R

pub struct R { /* fields omitted */ }

Value read from the register

Methods

impl R[src]

pub fn bits(&self) -> u32[src]

Value of the register as raw bits

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

Bit 0 - COMP channel 1 enable bit

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

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

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

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

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

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

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

Bit 14 - Comparator 2 output selector

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

Bit 15 - Comparator 2 polarity selector

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

Bits 16:17 - Comparator 2 hysteresis selector

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

Bits 18:19 - Comparator 2 power mode selector

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

Bits 20:24 - Comparator 2 blanking source selector

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

Bit 30 - Comparator 2 output status

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

Bit 31 - COMP2_CSR register lock

Auto Trait Implementations

impl Send for R

impl Sync for R

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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