[][src]Trait spectrusty::bus::ay::AyPortDecode

pub trait AyPortDecode: Debug {
    pub const PORT_MASK: u16;
    pub const PORT_SELECT: u16;
    pub const PORT_DATA_READ: u16;
    pub const PORT_DATA_WRITE: u16;
    pub fn is_select(port: u16) -> bool { ... }
pub fn is_data_read(port: u16) -> bool { ... }
pub fn is_data_write(port: u16) -> bool { ... }
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>
, { ... } }

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.

Loading content...

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]

A helper for writing data to one of the functions decoded from port address.

Loading content...

Implementors

impl AyPortDecode for AyTC2068PortDecode[src]

impl AyPortDecode for Ay128kPortDecode[src]

impl AyPortDecode for AyFullerBoxPortDecode[src]

Loading content...