pub struct Pit { /* private fields */ }Implementations§
Source§impl Pit
impl Pit
pub fn sleep_blocking(&mut self, us: u64)
Sourcepub fn read_count(&mut self) -> u16
pub fn read_count(&mut self) -> u16
Read the current count of Channel 2
Sourcepub fn start_one_shot(&mut self, ticks: u16)
pub fn start_one_shot(&mut self, ticks: u16)
Prepare Channel 2 for one-shot counting (Mode 0) Returns the timer to the starting state but does not wait
Auto Trait Implementations§
impl Freeze for Pit
impl RefUnwindSafe for Pit
impl Send for Pit
impl Sync for Pit
impl Unpin for Pit
impl UnwindSafe for Pit
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