Struct rz80::PIO [] [src]

pub struct PIO {
    // some fields omitted
}

Z80 PIO emulation

Methods

impl PIO
[src]

fn new(id: usize) -> PIO

initialize new PIO object

fn reset(&mut self)

reset the PIO

fn write_control(&mut self, chn: usize, val: RegT)

write to control register

fn read_control(&self) -> RegT

read control register

fn write_data(&mut self, bus: &Bus, chn: usize, data: RegT)

write data to PIO channel

fn read_data(&mut self, bus: &Bus, chn: usize) -> RegT

read data from PIO channel

fn write(&mut self, bus: &Bus, chn: usize, data: RegT)

write data from peripheral device into PIO