#[repr(transparent)]pub struct Csctrl2(pub u16);Expand description
Timer Channel Comparator Status and Control Register
Tuple Fields§
§0: u16Implementations§
Source§impl Csctrl2
impl Csctrl2
Sourcepub const fn cl1(&self) -> Csctrl2Cl1
pub const fn cl1(&self) -> Csctrl2Cl1
Compare Load Control 1
Sourcepub const fn set_cl1(&mut self, val: Csctrl2Cl1)
pub const fn set_cl1(&mut self, val: Csctrl2Cl1)
Compare Load Control 1
Sourcepub const fn cl2(&self) -> Csctrl2Cl2
pub const fn cl2(&self) -> Csctrl2Cl2
Compare Load Control 2
Sourcepub const fn set_cl2(&mut self, val: Csctrl2Cl2)
pub const fn set_cl2(&mut self, val: Csctrl2Cl2)
Compare Load Control 2
Sourcepub const fn set_tcf1en(&mut self, val: bool)
pub const fn set_tcf1en(&mut self, val: bool)
Timer Compare 1 Interrupt Enable
Sourcepub const fn set_tcf2en(&mut self, val: bool)
pub const fn set_tcf2en(&mut self, val: bool)
Timer Compare 2 Interrupt Enable
Sourcepub const fn tci(&self) -> Csctrl2Tci
pub const fn tci(&self) -> Csctrl2Tci
Triggered Count Initialization Control
Sourcepub const fn set_tci(&mut self, val: Csctrl2Tci)
pub const fn set_tci(&mut self, val: Csctrl2Tci)
Triggered Count Initialization Control
Sourcepub const fn set_alt_load(&mut self, val: bool)
pub const fn set_alt_load(&mut self, val: bool)
Alternative Load Enable
Sourcepub const fn dbg_en(&self) -> Csctrl2DbgEn
pub const fn dbg_en(&self) -> Csctrl2DbgEn
Debug Actions Enable
Sourcepub const fn set_dbg_en(&mut self, val: Csctrl2DbgEn)
pub const fn set_dbg_en(&mut self, val: Csctrl2DbgEn)
Debug Actions Enable
Trait Implementations§
impl Copy for Csctrl2
impl Eq for Csctrl2
impl StructuralPartialEq for Csctrl2
Auto Trait Implementations§
impl Freeze for Csctrl2
impl RefUnwindSafe for Csctrl2
impl Send for Csctrl2
impl Sync for Csctrl2
impl Unpin for Csctrl2
impl UnwindSafe for Csctrl2
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