W

Type Alias W 

pub type W = W<C0Spec>;
Expand description

Register C0 writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

§

impl W

pub fn hystctr(&mut self) -> HystctrW<'_, C0Spec>

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

pub fn offset(&mut self) -> OffsetW<'_, C0Spec>

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

pub fn filter_cnt(&mut self) -> FilterCntW<'_, C0Spec>

Bits 4:6 - Filter Sample Count

pub fn en(&mut self) -> EnW<'_, C0Spec>

Bit 8 - Comparator Module Enable

pub fn ope(&mut self) -> OpeW<'_, C0Spec>

Bit 9 - Comparator Output Pin Enable

pub fn cos(&mut self) -> CosW<'_, C0Spec>

Bit 10 - Comparator Output Select

pub fn invt(&mut self) -> InvtW<'_, C0Spec>

Bit 11 - Comparator invert

pub fn pmode(&mut self) -> PmodeW<'_, C0Spec>

Bit 12 - Power Mode Select

pub fn we(&mut self) -> WeW<'_, C0Spec>

Bit 14 - Windowing Enable

pub fn se(&mut self) -> SeW<'_, C0Spec>

Bit 15 - Sample Enable

pub fn fpr(&mut self) -> FprW<'_, C0Spec>

Bits 16:23 - Filter Sample Period

pub fn cff(&mut self) -> CffW<'_, C0Spec>

Bit 25 - Analog Comparator Flag Falling

pub fn cfr(&mut self) -> CfrW<'_, C0Spec>

Bit 26 - Analog Comparator Flag Rising

pub fn ief(&mut self) -> IefW<'_, C0Spec>

Bit 27 - Comparator Interrupt Enable Falling

pub fn ier(&mut self) -> IerW<'_, C0Spec>

Bit 28 - Comparator Interrupt Enable Rising

pub fn dmaen(&mut self) -> DmaenW<'_, C0Spec>

Bit 30 - DMA Enable