Trait spectrusty::peripherals::bus::ay::AyIoPort
source · pub trait AyIoPort {
type Timestamp: Sized;
fn ay_io_reset(&mut self, _timestamp: Self::Timestamp) { ... }
fn ay_io_write(&mut self, _addr: u16, _data: u8, _timestamp: Self::Timestamp) { ... }
fn ay_io_read(&mut self, _addr: u16, _timestamp: Self::Timestamp) -> u8 { ... }
fn end_frame(&mut self, _timestamp: Self::Timestamp) { ... }
}
Expand description
This trait should be implemented by emulators of devices attached to one of two Ay3_891xIo I/O ports.
Required Associated Types§
Provided Methods§
sourcefn ay_io_reset(&mut self, _timestamp: Self::Timestamp)
fn ay_io_reset(&mut self, _timestamp: Self::Timestamp)
Resets the device at the given timestamp
.
sourcefn ay_io_write(&mut self, _addr: u16, _data: u8, _timestamp: Self::Timestamp)
fn ay_io_write(&mut self, _addr: u16, _data: u8, _timestamp: Self::Timestamp)
Writes data to the device at the given timestamp
.
sourcefn ay_io_read(&mut self, _addr: u16, _timestamp: Self::Timestamp) -> u8
fn ay_io_read(&mut self, _addr: u16, _timestamp: Self::Timestamp) -> u8
Reads data from the device at the given timestamp
.