#[repr(transparent)]pub struct SystCsr(pub u32);Expand description
SysTick Control and Status Register
Tuple Fields§
§0: u32Implementations§
Source§impl SystCsr
impl SystCsr
Sourcepub const fn set_enable(&mut self, val: Enable)
pub const fn set_enable(&mut self, val: Enable)
Enable/disable systick counter
Sourcepub const fn set_tickint(&mut self, val: Tickint)
pub const fn set_tickint(&mut self, val: Tickint)
Enable Systick interrupt.
Sourcepub const fn set_clksource(&mut self, val: Clksource)
pub const fn set_clksource(&mut self, val: Clksource)
Clock source selection.
Sourcepub const fn countflag(&self) -> bool
pub const fn countflag(&self) -> bool
Returns 1 if timer counted to 0 since the last read of this register.
Sourcepub const fn set_countflag(&mut self, val: bool)
pub const fn set_countflag(&mut self, val: bool)
Returns 1 if timer counted to 0 since the last read of this register.
Trait Implementations§
impl Copy for SystCsr
impl Eq for SystCsr
impl StructuralPartialEq for SystCsr
Auto Trait Implementations§
impl Freeze for SystCsr
impl RefUnwindSafe for SystCsr
impl Send for SystCsr
impl Sync for SystCsr
impl Unpin for SystCsr
impl UnwindSafe for SystCsr
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