pub struct MapperCaps {
pub cpu_cycle_hook: bool,
pub audio: bool,
pub frame_event_hook: bool,
pub irq_source: bool,
}Expand description
v2.8.0 Phase 4 — per-CPU-cycle mapper capability flags (see
Mapper::caps). Each flag corresponds to one of the four hooks the
bus would otherwise virtually dispatch every CPU cycle.
Fields§
§cpu_cycle_hook: boolThe mapper overrides Mapper::notify_cpu_cycle (CPU-clocked IRQ
counters: VRC4/6/7, FME-7, Namco 163, MMC3’s A12 filter clock, …).
audio: boolThe mapper overrides Mapper::mix_audio (on-cart expansion audio;
only meaningful when the mapper-audio feature is compiled in).
frame_event_hook: boolThe mapper overrides Mapper::notify_frame_event (MMC5 audio’s
frame-counter-cadenced envelope/length clocks).
irq_source: boolThe mapper overrides Mapper::irq_pending (it can assert IRQs).
Implementations§
Source§impl MapperCaps
impl MapperCaps
Trait Implementations§
Source§impl Clone for MapperCaps
impl Clone for MapperCaps
Source§fn clone(&self) -> MapperCaps
fn clone(&self) -> MapperCaps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MapperCaps
Source§impl Debug for MapperCaps
impl Debug for MapperCaps
impl Eq for MapperCaps
Source§impl PartialEq for MapperCaps
impl PartialEq for MapperCaps
impl StructuralPartialEq for MapperCaps
Auto Trait Implementations§
impl Freeze for MapperCaps
impl RefUnwindSafe for MapperCaps
impl Send for MapperCaps
impl Sync for MapperCaps
impl Unpin for MapperCaps
impl UnsafeUnpin for MapperCaps
impl UnwindSafe for MapperCaps
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