[−][src]Trait spectrusty::bus::ay::AyPortDecode
A helper trait for matching I/O port addresses for AY-3-8910.
Associated Constants
pub const PORT_MASK: u16
[src]
A mask of significant address bus bits for port decoding.
pub const PORT_SELECT: u16
[src]
A mask of address bus bit values - for the register selection function.
pub const PORT_DATA_READ: u16
[src]
A mask of address bus bit values - for the reading from the selected register function.
pub const PORT_DATA_WRITE: u16
[src]
A mask of address bus bit values - for the writing to the selected register function.
Provided methods
pub fn is_select(port: u16) -> bool
[src]
Return true
if the port matches the register selection function.
pub fn is_data_read(port: u16) -> bool
[src]
Return true
if the port matches the register reading function.
pub fn is_data_write(port: u16) -> bool
[src]
Return true
if the port matches the register writing function.
pub fn write_ay_io<T, R, A, B>(
ay_io: &mut Ay3_891xIo<T, R, A, B>,
port: u16,
data: u8,
timestamp: T
) -> bool where
B: AyIoPort<Timestamp = T>,
A: AyIoPort<Timestamp = T>,
R: AyRegRecorder<Timestamp = T>,
[src]
ay_io: &mut Ay3_891xIo<T, R, A, B>,
port: u16,
data: u8,
timestamp: T
) -> bool where
B: AyIoPort<Timestamp = T>,
A: AyIoPort<Timestamp = T>,
R: AyRegRecorder<Timestamp = T>,
A helper for writing data to one of the functions decoded from port
address.