Type Alias gd32f1::gd32f190::cmp::cs::R

source ·
pub type R = R<CsSpec>;
Expand description

Register CS reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn cmp0en(&self) -> Cmp0enR

Bit 0 - CMP0 enable

source

pub fn cmp0sw(&self) -> Cmp0swR

Bit 1 - CMP0 switch

source

pub fn cmp0m(&self) -> Cmp0mR

Bits 2:3 - CMP0 mode

source

pub fn cmp0msel(&self) -> Cmp0mselR

Bits 4:6 - CMP0_M input selection

source

pub fn cmp0osel(&self) -> Cmp0oselR

Bits 8:10 - Comparator 0 output selection

source

pub fn cmp0pl(&self) -> Cmp0plR

Bit 11 - Polarity of CMP0 output

source

pub fn cmp0hst(&self) -> Cmp0hstR

Bits 12:13 - CMP0 hysteresis

source

pub fn cmp0o(&self) -> Cmp0oR

Bit 14 - CMP0 output

source

pub fn cmp0lk(&self) -> Cmp0lkR

Bit 15 - CMP0 lock

source

pub fn cmp1en(&self) -> Cmp1enR

Bit 16 - CMP1 enable

source

pub fn cmp1m(&self) -> Cmp1mR

Bits 18:19 - CMP1 mode

source

pub fn cmp1msel(&self) -> Cmp1mselR

Bits 20:22 - CMP1_M input selection

source

pub fn wnden(&self) -> WndenR

Bit 23 - Window mode enable

source

pub fn cmp1osel(&self) -> Cmp1oselR

Bits 24:26 - CMP1 output selection

source

pub fn cmp1pl(&self) -> Cmp1plR

Bit 27 - Polarity of CMP1 output

source

pub fn cmp1hst(&self) -> Cmp1hstR

Bits 28:29 - CMP1 hysteresis

source

pub fn cmp1o(&self) -> Cmp1oR

Bit 30 - CMP1 output

source

pub fn cmp1lk(&self) -> Cmp1lkR

Bit 31 - CMP1 lock