#[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
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
Trait Implementations§
impl Copy for Ccr1
impl Eq for Ccr1
impl StructuralPartialEq for Ccr1
Auto Trait Implementations§
impl Freeze for Ccr1
impl RefUnwindSafe for Ccr1
impl Send for Ccr1
impl Sync for Ccr1
impl Unpin for Ccr1
impl UnwindSafe for Ccr1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more