#[repr(transparent)]pub struct Tick(pub u32);
Expand description
Controls the tick generator
Tuple Fields§
§0: u32
Implementations§
source§impl Tick
impl Tick
sourcepub fn set_cycles(&mut self, val: u16)
pub fn set_cycles(&mut self, val: u16)
Total number of clk_tick cycles before the next tick.
sourcepub fn set_enable(&mut self, val: bool)
pub fn set_enable(&mut self, val: bool)
start / stop tick generation
sourcepub fn set_running(&mut self, val: bool)
pub fn set_running(&mut self, val: bool)
Is the tick generator running?
Trait Implementations§
impl Copy for Tick
impl Eq for Tick
impl StructuralPartialEq for Tick
Auto Trait Implementations§
impl Freeze for Tick
impl RefUnwindSafe for Tick
impl Send for Tick
impl Sync for Tick
impl Unpin for Tick
impl UnwindSafe for Tick
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)