[][src]Struct sunrise_kernel::devices::pit::PITChannel2

struct PITChannel2<'ports> {
    ports: &'ports mut PITPorts,
}

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.