[−][src]Struct dustbox::pit::PIT
Fields
timer0: Timer
timer1: Timer
timer2: 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 in_u8(&mut self, port: u16) -> Option<u8>
[src]
fn out_u8(&mut self, port: u16, data: u8) -> bool
[src]
fn int(&mut self, int: u8, cpu: &mut CPU, _mmu: &mut MMU) -> bool
[src]
fn out_u16(&mut self, _port: u16, _data: u16) -> bool
[src]
returns true if write was handled
impl Clone for PIT
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.