pub struct Timer { /* private fields */ }
Implementations§
source§impl Timer
impl Timer
pub const fn new(instance: usize) -> Timer
pub fn set_client(&self, client: &'static dyn CompareClient)
sourcepub fn handle_interrupt(&self)
pub fn handle_interrupt(&self)
When an interrupt occurs, check if any of the 4 compares have created an event, and if so, add it to the bitmask of triggered events that is passed to the client.
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