#[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 cout_sel(&self) -> bool
pub const fn cout_sel(&self) -> bool
Comparator Output Select. Raw bit values: false (0) = Cout: Use COUT (filtered).; true (1) = Couta: Use COUTA (unfiltered).
Sourcepub const fn set_cout_sel(&mut self, val: bool)
pub const fn set_cout_sel(&mut self, val: bool)
Comparator Output Select. Raw bit values: false (0) = Cout: Use COUT (filtered).; true (1) = Couta: Use COUTA (unfiltered).
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) -> bool
pub const fn couta_owen(&self) -> bool
COUTA_OW Enable. Raw bit values: false (0) = Sampled: COUTA holds the last sampled value.; true (1) = CoutaOw: Enables the COUTA signal value to be defined by COUTA_OW.
Sourcepub const fn set_couta_owen(&mut self, val: bool)
pub const fn set_couta_owen(&mut self, val: bool)
COUTA_OW Enable. Raw bit values: false (0) = Sampled: COUTA holds the last sampled value.; true (1) = CoutaOw: Enables the COUTA signal value to be defined by COUTA_OW.
Sourcepub const fn couta_ow(&self) -> bool
pub const fn couta_ow(&self) -> bool
COUTA Output Level for Closed Window. Raw bit values: false (0) = Couta0: COUTA is 0.; true (1) = Couta1: COUTA is 1.
Sourcepub const fn set_couta_ow(&mut self, val: bool)
pub const fn set_couta_ow(&mut self, val: bool)
COUTA Output Level for Closed Window. Raw bit values: false (0) = Couta0: COUTA is 0.; true (1) = Couta1: COUTA is 1.
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
COUT Event Window Close.
Sourcepub const fn set_window_cls(&mut self, val: bool)
pub const fn set_window_cls(&mut self, val: bool)
COUT Event Window Close.
Sourcepub const fn set_evt_sel(&mut self, val: EvtSel)
pub const fn set_evt_sel(&mut self, val: EvtSel)
COUT Event Select.
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.