[][src]Struct dustbox::pit::PIT

pub struct PIT {
    pub timer0: Timer,
    pub timer1: Timer,
    pub timer2: Timer,
}

Fields

timer0: Timertimer1: Timertimer2: Timer

Methods

impl PIT[src]

pub fn default() -> Self[src]

pub fn init(&mut self)[src]

initializes the PIT with current time of day

pub fn update(&mut self, mmu: &mut MMU)[src]

pub fn set_mode_command(&mut self, val: u8)[src]

port 0043: control word register for counters 0-2 called "8253/8254 PIT mode control word" in the interrupt list

Trait Implementations

impl Component for PIT[src]

fn out_u16(&mut self, _port: u16, _data: u16) -> bool[src]

returns true if write was handled

impl Clone for PIT[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for PIT

impl Sync for PIT

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.