pub trait VideoBus {
// Provided methods
fn cart_read(&mut self, _addr24: u32) -> u8 { ... }
fn notify_scanline(&mut self) { ... }
fn notify_vblank(&mut self) { ... }
}Expand description
The narrow bus interface the PPU sees. Every method has a default so a minimal test impl
(struct DummyBus; impl VideoBus for DummyBus {}) compiles.
Provided Methods§
Sourcefn cart_read(&mut self, _addr24: u32) -> u8
fn cart_read(&mut self, _addr24: u32) -> u8
Cartridge-mediated read for the PPU (Mode 7 extended-bank fetches on coprocessor
boards route here; plain boards return open bus). Default 0.
Sourcefn notify_scanline(&mut self)
fn notify_scanline(&mut self)
Notify the board that the PPU is starting a new scanline (for scanline-aligned coprocessor / IRQ logic). Default no-op.
Sourcefn notify_vblank(&mut self)
fn notify_vblank(&mut self)
Notify the board that the PPU has entered vertical blank. Default no-op.