#[repr(transparent)]pub struct Ccr1(pub u32);Expand description
Comparator Control Register 1.
Tuple Fields§
§0: u32Implementations§
Source§impl Ccr1
impl Ccr1
Sourcepub const fn set_window_en(&mut self, val: bool)
pub const fn set_window_en(&mut self, val: bool)
Windowing Enable.
Sourcepub const fn set_sample_en(&mut self, val: bool)
pub const fn set_sample_en(&mut self, val: bool)
Sampling Enable.
Sourcepub const fn set_dma_en(&mut self, val: bool)
pub const fn set_dma_en(&mut self, val: bool)
DMA Enable.
Sourcepub const fn set_cout_inv(&mut self, val: bool)
pub const fn set_cout_inv(&mut self, val: bool)
Comparator Invert.
Sourcepub const fn set_cout_sel(&mut self, val: CoutSel)
pub const fn set_cout_sel(&mut self, val: CoutSel)
Comparator Output Select.
Sourcepub const fn set_cout_pen(&mut self, val: bool)
pub const fn set_cout_pen(&mut self, val: bool)
Comparator Output Pin Enable.
Sourcepub const fn couta_owen(&self) -> CoutaOwen
pub const fn couta_owen(&self) -> CoutaOwen
COUTA_OW Enable.
Sourcepub const fn set_couta_owen(&mut self, val: CoutaOwen)
pub const fn set_couta_owen(&mut self, val: CoutaOwen)
COUTA_OW Enable.
Sourcepub const fn set_couta_ow(&mut self, val: CoutaOw)
pub const fn set_couta_ow(&mut self, val: CoutaOw)
COUTA Output Level for Closed Window.
Sourcepub const fn window_inv(&self) -> bool
pub const fn window_inv(&self) -> bool
WINDOW/SAMPLE Signal Invert.
Sourcepub const fn set_window_inv(&mut self, val: bool)
pub const fn set_window_inv(&mut self, val: bool)
WINDOW/SAMPLE Signal Invert.
Sourcepub const fn window_cls(&self) -> bool
pub const fn window_cls(&self) -> bool
Close the active window on the selected event: COUT on A2, CMPO on A5. CMPO can select unfiltered COUTA on A5.
Sourcepub const fn set_window_cls(&mut self, val: bool)
pub const fn set_window_cls(&mut self, val: bool)
Close the active window on the selected event: COUT on A2, CMPO on A5. CMPO can select unfiltered COUTA on A5.
Sourcepub const fn evt_sel(&self) -> EvtSel
pub const fn evt_sel(&self) -> EvtSel
Select the event edge of COUT on A2 or CMPO on A5. Valid only in Windowing mode.
Sourcepub const fn set_evt_sel(&mut self, val: EvtSel)
pub const fn set_evt_sel(&mut self, val: EvtSel)
Select the event edge of COUT on A2 or CMPO on A5. Valid only in Windowing mode.
Sourcepub const fn func_clk_sel(&self) -> FuncClkSel
pub const fn func_clk_sel(&self) -> FuncClkSel
Functional Clock Source Select.
Sourcepub const fn set_func_clk_sel(&mut self, val: FuncClkSel)
pub const fn set_func_clk_sel(&mut self, val: FuncClkSel)
Functional Clock Source Select.
Sourcepub const fn set_filt_cnt(&mut self, val: FiltCnt)
pub const fn set_filt_cnt(&mut self, val: FiltCnt)
Filter Sample Count.
Sourcepub const fn set_filt_per(&mut self, val: u8)
pub const fn set_filt_per(&mut self, val: u8)
Filter Sample Period.