[][src]Struct stm32l1xx_hal::stm32::comp::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 tsusp(&self) -> TSUSPR[src]

Bit 31 - Suspend Timer Mode

pub fn caif(&self) -> CAIFR[src]

Bit 30 - Channel acquisition interrupt flag

pub fn caie(&self) -> CAIER[src]

Bit 29 - Channel Acquisition Interrupt Enable / Clear

pub fn rch13(&self) -> RCH13R[src]

Bit 28 - Select GPIO port PC3 as re-routed ADC input channel CH13.

pub fn fch8(&self) -> FCH8R[src]

Bit 27 - Select GPIO port PB0 as fast ADC input channel CH8.

pub fn fch3(&self) -> FCH3R[src]

Bit 26 - Select GPIO port PA3 as fast ADC input channel CH3.

pub fn outsel(&self) -> OUTSELR[src]

Bits 21:23 - Comparator 2 output selection

pub fn insel(&self) -> INSELR[src]

Bits 18:20 - Inverted input selection

pub fn wndwe(&self) -> WNDWER[src]

Bit 17 - Window mode enable

pub fn vrefouten(&self) -> VREFOUTENR[src]

Bit 16 - VREFINT output enable

pub fn cmp2out(&self) -> CMP2OUTR[src]

Bit 13 - Comparator 2 output

pub fn speed(&self) -> SPEEDR[src]

Bit 12 - Comparator 2 speed mode

pub fn cmp1out(&self) -> CMP1OUTR[src]

Bit 7 - Comparator 1 output

pub fn sw1(&self) -> SW1R[src]

Bit 5 - SW1 analog switch enable

pub fn cmp1en(&self) -> CMP1ENR[src]

Bit 4 - Comparator 1 enable

pub fn pd400k(&self) -> PD400KR[src]

Bit 3 - 400 kO pull-down resistor

pub fn pd10k(&self) -> PD10KR[src]

Bit 2 - 10 kO pull-down resistor

pub fn pu400k(&self) -> PU400KR[src]

Bit 1 - 400 kO pull-up resistor

pub fn pu10k(&self) -> PU10KR[src]

Bit 0 - 10 kO pull-up resistor

Auto Trait Implementations

impl Unpin for R

impl Send for R

impl Sync for R

Blanket Implementations

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

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, 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]