pub struct LockstepPort {
pub register: u8,
pub tone: LockstepTone,
}Expand description
Sockets 2, 5, 6 and 9: a port device that claims $FF:1800-18FF (one register), is
present (the I/O port’s D7 reads low), raises IRQ2 by itself for WIDTH master clocks every
PERIOD, and owns an audio source.
Fields§
§register: u8§tone: LockstepToneImplementations§
Trait Implementations§
Source§impl Default for LockstepPort
impl Default for LockstepPort
Source§impl DeviceState for LockstepPort
impl DeviceState for LockstepPort
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.
Source§impl PageHandler for LockstepPort
impl PageHandler for LockstepPort
Source§impl PortDevice for LockstepPort
impl PortDevice for LockstepPort
Source§fn present(&self) -> bool
fn present(&self) -> bool
K7: a device on the port pulls the I/O port’s D7 low (“CD unit attached”, C6 polarity).
fn claims(&self) -> Vec<(usize, usize)>
Source§fn catch_up(&mut self, mclk: i64, pins: &mut BoardPins<'_>)
fn catch_up(&mut self, mclk: i64, pins: &mut BoardPins<'_>)
Socket 5: the device keeps its own rational ratio and remainder and runs up to
mclk
when asked; the board asks at every advance (the reference’s issue 0002).fn reset(&mut self, _kind: ResetKind, _pins: &mut BoardPins<'_>)
Source§fn audio_sources(&mut self) -> Vec<&mut dyn AudioSource>
fn audio_sources(&mut self) -> Vec<&mut dyn AudioSource>
Socket 9: the device’s own mixer inputs (CD-DA, ADPCM), in a fixed order; mixed after
the PSG.
fn as_any_mut(&mut self) -> &mut dyn Any
Auto Trait Implementations§
impl Freeze for LockstepPort
impl RefUnwindSafe for LockstepPort
impl Send for LockstepPort
impl Sync for LockstepPort
impl Unpin for LockstepPort
impl UnwindSafe for LockstepPort
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