pub struct CpuIo {
pub buffer: IoBuffer,
pub timer: Timer,
pub irq: IrqController,
pub port: IoPort,
}Fields§
§buffer: IoBuffer§timer: Timer§irq: IrqController§port: IoPortImplementations§
Source§impl CpuIo
impl CpuIo
pub fn new( country_pc_engine: bool, pad: Option<Box<dyn ControllerPort>>, ) -> CpuIo
pub fn reset(&mut self)
pub fn catch_up(&mut self, mclk: i64)
pub fn next_event(&self) -> Option<i64>
pub fn tiq(&self) -> bool
Sourcepub fn read(&mut self, offset: u32, mclk: i64, cd_attached: bool) -> u8
pub fn read(&mut self, offset: u32, mclk: i64, cd_attached: bool) -> u8
offset is the hardware-page offset, $0800-$17FF. Loads the buffer, as pcetech 3.
pub fn write( &mut self, offset: u32, value: u8, mclk: i64, psg: &mut impl PsgPins, )
Auto Trait Implementations§
impl Freeze for CpuIo
impl !RefUnwindSafe for CpuIo
impl !Send for CpuIo
impl !Sync for CpuIo
impl Unpin for CpuIo
impl !UnwindSafe for CpuIo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more