R

Type Alias R 

pub type R = R<C0Spec>;
Expand description

Register C0 reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

§

impl R

pub fn hystctr(&self) -> HystctrR

Bits 0:1 - Comparator hard block hysteresis control. See chip data sheet to get the actual hysteresis value with each level

pub fn offset(&self) -> OffsetR

Bit 2 - Comparator hard block offset control. See chip data sheet to get the actual offset value with each level

pub fn filter_cnt(&self) -> FilterCntR

Bits 4:6 - Filter Sample Count

pub fn en(&self) -> EnR

Bit 8 - Comparator Module Enable

pub fn ope(&self) -> OpeR

Bit 9 - Comparator Output Pin Enable

pub fn cos(&self) -> CosR

Bit 10 - Comparator Output Select

pub fn invt(&self) -> InvtR

Bit 11 - Comparator invert

pub fn pmode(&self) -> PmodeR

Bit 12 - Power Mode Select

pub fn we(&self) -> WeR

Bit 14 - Windowing Enable

pub fn se(&self) -> SeR

Bit 15 - Sample Enable

pub fn fpr(&self) -> FprR

Bits 16:23 - Filter Sample Period

pub fn cout(&self) -> CoutR

Bit 24 - Analog Comparator Output

pub fn cff(&self) -> CffR

Bit 25 - Analog Comparator Flag Falling

pub fn cfr(&self) -> CfrR

Bit 26 - Analog Comparator Flag Rising

pub fn ief(&self) -> IefR

Bit 27 - Comparator Interrupt Enable Falling

pub fn ier(&self) -> IerR

Bit 28 - Comparator Interrupt Enable Rising

pub fn dmaen(&self) -> DmaenR

Bit 30 - DMA Enable