[][src]Struct stm32l1xx_hal::stm32::comp::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 W[src]

Writes raw bits to the register

pub fn tsusp(&mut self) -> _TSUSPW[src]

Bit 31 - Suspend Timer Mode

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

Bit 29 - Channel Acquisition Interrupt Enable / Clear

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

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

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

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

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

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

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

Bits 21:23 - Comparator 2 output selection

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

Bits 18:20 - Inverted input selection

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

Bit 17 - Window mode enable

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

Bit 16 - VREFINT output enable

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

Bit 12 - Comparator 2 speed mode

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

Bit 5 - SW1 analog switch enable

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

Bit 4 - Comparator 1 enable

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

Bit 3 - 400 kO pull-down resistor

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

Bit 2 - 10 kO pull-down resistor

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

Bit 1 - 400 kO pull-up resistor

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

Bit 0 - 10 kO pull-up resistor

Auto Trait Implementations

impl Unpin for W

impl Send for W

impl Sync for W

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]