pub struct LockstepCard {
pub ram: Vec<u8>,
pub writes: u64,
/* private fields */
}Expand description
Socket 1 (and 3, 4): a ROM card that also claims banks $F8-$FB, so the work RAM is the card’s, and that holds the CPU for 3 master clocks on every 4096th write to it.
Fields§
§ram: Vec<u8>§writes: u64Implementations§
Source§impl LockstepCard
impl LockstepCard
Trait Implementations§
Source§impl Card for LockstepCard
impl Card for LockstepCard
Source§fn grounds_cd(&self) -> bool
fn grounds_cd(&self) -> bool
The /CD line: a card grounds it so a CD unit can tell one is inserted.
[doc: wiki HuCard pinout]
Source§fn claims(&self) -> Vec<(usize, usize)>
fn claims(&self) -> Vec<(usize, usize)>
Inclusive (first_page, last_page) ranges over the 8192 pages of 256 bytes.
fn reset(&mut self, _kind: ResetKind, _pins: &mut BoardPins<'_>)
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
For an add-on that knows which card it built (the CD unit and its System Card).
Source§impl DeviceState for LockstepCard
impl DeviceState for LockstepCard
Source§fn load_state(&mut self, data: &[u8]) -> Result<(), String>
fn load_state(&mut self, data: &[u8]) -> Result<(), String>
Put the device in a saved state. A device without state accepts only an empty one.
Source§fn state_identity(&self) -> String
fn state_identity(&self) -> String
What the device is and which media it holds (a card’s ROM by its SHA-1, a disc by its
table of contents): a state is refused by a system whose device answers otherwise.
Auto Trait Implementations§
impl Freeze for LockstepCard
impl RefUnwindSafe for LockstepCard
impl Send for LockstepCard
impl Sync for LockstepCard
impl Unpin for LockstepCard
impl UnwindSafe for LockstepCard
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