[][src]Trait spectrusty::peripherals::bus::ay::AyIoPort

pub trait AyIoPort {
    type Timestamp: Sized;
    pub fn ay_io_reset(&mut self, _timestamp: Self::Timestamp) { ... }
pub fn ay_io_write(
        &mut self,
        _addr: u16,
        _data: u8,
        _timestamp: Self::Timestamp
    ) { ... }
pub fn ay_io_read(&mut self, _addr: u16, _timestamp: Self::Timestamp) -> u8 { ... }
pub fn end_frame(&mut self, _timestamp: Self::Timestamp) { ... } }

This trait should be implemented by emulators of devices attached to one of two Ay3_891xIo I/O ports.

Associated Types

Loading content...

Provided methods

pub fn ay_io_reset(&mut self, _timestamp: Self::Timestamp)[src]

Resets the device at the given timestamp.

pub fn ay_io_write(
    &mut self,
    _addr: u16,
    _data: u8,
    _timestamp: Self::Timestamp
)
[src]

Writes data to the device at the given timestamp.

pub fn ay_io_read(&mut self, _addr: u16, _timestamp: Self::Timestamp) -> u8[src]

Reads data from the device at the given timestamp.

pub fn end_frame(&mut self, _timestamp: Self::Timestamp)[src]

Signals the device when the current frame ends, providing the value of the cycle clock after the frame execution stopped.

Loading content...

Implementors

impl<S1, S2> AyIoPort for SerialPorts128<S1, S2> where
    S1: SerialPortDevice,
    S2: SerialPortDevice<Timestamp = <S1 as SerialPortDevice>::Timestamp>,
    <S1 as SerialPortDevice>::Timestamp: Copy
[src]

type Timestamp = <S1 as SerialPortDevice>::Timestamp

impl<T> AyIoPort for AyIoNullPort<T>[src]

type Timestamp = T

Loading content...