Type Alias R

Source
pub type R = R<COMP2_CSRrs>;
Expand description

Register COMP2_CSR reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn comp2en(&self) -> COMP2EN_R

Bit 0 - Comparator 2 enable

Source

pub fn comp2_inp_dac(&self) -> COMP2_INP_DAC_R

Bit 1 - Comparator 2 non inverting input connection to DAC output

Source

pub fn comp2mode(&self) -> COMP2MODE_R

Bits 2:3 - Comparator 2 mode

Source

pub fn comp2inmsel(&self) -> COMP2INMSEL_R

Bits 4:6 - Comparator 2 inverting input selection

Source

pub fn comp2inpsel(&self) -> COMP2INPSEL_R

Bit 7 - Comparator 2 non inverted input

Source

pub fn comp2winmode(&self) -> COMP2WINMODE_R

Bit 9 - Comparator 2 window mode

Source

pub fn comp2outsel(&self) -> COMP2OUTSEL_R

Bits 10:13 - Comparator 2 output selection

Source

pub fn comp2pol(&self) -> COMP2POL_R

Bit 15 - Comparator 2 output polarity

Source

pub fn comp2hyst(&self) -> COMP2HYST_R

Bits 16:17 - Comparator 2 hysteresis

Source

pub fn comp2_blanking(&self) -> COMP2_BLANKING_R

Bits 18:20 - Comparator 2 blanking source

Source

pub fn comp2out(&self) -> COMP2OUT_R

Bit 30 - Comparator 2 output

Source

pub fn comp2lock(&self) -> COMP2LOCK_R

Bit 31 - Comparator 2 lock

Trait Implementations§

Source§

impl Debug for R

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more