[−][src]Struct sunrise_kernel::devices::pit::PITChannel2
Channel 2
Fields
ports: &'ports mut PITPorts
A reference to the PITPorts structure.
Implementations
impl<'ports> PITChannel2<'ports>
[src]
fn init(ports: &mut PITPorts) -> PITChannel2
[src]
Sets mode #0 for Channel 2.
fn start_countdown(&mut self, value: u16)
[src]
Sets the countdown reset value by writing to channel 2 data port. Starts the countdown as a side-effect
fn is_countdown_finished(&self) -> bool
[src]
Checks if the countdown is finished
fn wait_countdown_is_finished(&self)
[src]
Waits until countdown is finished
fn spin_wait_ms(&mut self, ms: usize)
[src]
Spin waits for at least ms
amount of milliseconds
Auto Trait Implementations
impl<'ports> RefUnwindSafe for PITChannel2<'ports>
impl<'ports> Send for PITChannel2<'ports>
impl<'ports> Sync for PITChannel2<'ports>
impl<'ports> Unpin for PITChannel2<'ports>
impl<'ports> !UnwindSafe for PITChannel2<'ports>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,