[]Struct nucleo_f042k6::syscfg_comp::comp_csr::W

pub struct W { /* fields omitted */ }

Value to write to the register

Methods

impl W

pub fn reset_value() -> W

Reset value of the register

pub unsafe fn bits(&mut self, bits: u32) -> &mut W

Writes raw bits to the register

pub fn comp1en(&mut self) -> _COMP1ENW

Bit 0 - Comparator 1 enable

pub fn comp1_inp_dac(&mut self) -> _COMP1_INP_DACW

Bit 1 - COMP1_INP_DAC

pub fn comp1mode(&mut self) -> _COMP1MODEW

Bits 2:3 - Comparator 1 mode

pub fn comp1insel(&mut self) -> _COMP1INSELW

Bits 4:6 - Comparator 1 inverting input selection

pub fn comp1outsel(&mut self) -> _COMP1OUTSELW

Bits 8:10 - Comparator 1 output selection

pub fn comp1pol(&mut self) -> _COMP1POLW

Bit 11 - Comparator 1 output polarity

pub fn comp1hyst(&mut self) -> _COMP1HYSTW

Bits 12:13 - Comparator 1 hysteresis

pub fn comp1lock(&mut self) -> _COMP1LOCKW

Bit 15 - Comparator 1 lock

pub fn comp2en(&mut self) -> _COMP2ENW

Bit 16 - Comparator 2 enable

pub fn comp2mode(&mut self) -> _COMP2MODEW

Bits 18:19 - Comparator 2 mode

pub fn comp2insel(&mut self) -> _COMP2INSELW

Bits 20:22 - Comparator 2 inverting input selection

pub fn wndwen(&mut self) -> _WNDWENW

Bit 23 - Window mode enable

pub fn comp2outsel(&mut self) -> _COMP2OUTSELW

Bits 24:26 - Comparator 2 output selection

pub fn comp2pol(&mut self) -> _COMP2POLW

Bit 27 - Comparator 2 output polarity

pub fn comp2hyst(&mut self) -> _COMP2HYSTW

Bits 28:29 - Comparator 2 hysteresis

pub fn comp2lock(&mut self) -> _COMP2LOCKW

Bit 31 - Comparator 2 lock

Auto Trait Implementations

impl Send for W

impl Sync for W

Blanket Implementations

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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