Struct rz80::CTC [] [src]

pub struct CTC {
    // some fields omitted
}

Z80 CTC emulation

Methods

impl CTC
[src]

fn new(id: usize) -> CTC

initialize new CTC object

fn reset(&mut self)

reset the CTC

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

write a CTC control register

fn read(&self, chn: usize) -> RegT

read current counter or timer value

fn trigger(&mut self, bus: &Bus, chn: usize)

externally provided trigger/pulse signal, updates counters

fn update_timers(&mut self, bus: &Bus, cycles: i64)

update the CTC channel timers