[][src]Struct emulator::bus::IoRegisters

pub struct IoRegisters { /* fields omitted */ }

IoRegisters of the 2i.

Represents the input and output registers of the 2i. Reading from an address lower than FC or writing to an address lower than FE will result in an error.

Methods

impl IoRegisters[src]

pub fn new() -> IoRegisters[src]

Create a new IoRegisters with all registers initialised to zero.

pub fn inspect_input(&self) -> &RefCell<[u8; 4]>[src]

Direct access to the input registers wrapped in a RefCell.

pub fn inspect_output(&self) -> &RefCell<[u8; 2]>[src]

Direct access to the output registers wrapped in a RefCell.

Trait Implementations

impl Bus for IoRegisters[src]

impl Default for IoRegisters[src]

Auto Trait Implementations

impl Send for IoRegisters

impl !Sync for IoRegisters

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.