#[repr(transparent)]pub struct Timer(pub u32);
Expand description
Pacing (X/Y) Fractional Timer The pacing timer produces TREQ assertions at a rate set by ((X/Y) * sys_clk). This equation is evaluated every sys_clk cycles and therefore can only generate TREQs at a rate of 1 per sys_clk (i.e. permanent TREQ) or less.
Tuple Fields§
§0: u32
Implementations§
source§impl Timer
impl Timer
sourcepub const fn y(&self) -> u16
pub const fn y(&self) -> u16
Pacing Timer Divisor. Specifies the Y value for the (X/Y) fractional timer.
sourcepub fn set_y(&mut self, val: u16)
pub fn set_y(&mut self, val: u16)
Pacing Timer Divisor. Specifies the Y value for the (X/Y) fractional timer.
Trait Implementations§
impl Copy for Timer
impl Eq for Timer
impl StructuralPartialEq for Timer
Auto Trait Implementations§
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnwindSafe for Timer
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
)