pub struct Config {
pub pacing: BytePacing,
pub kick_every: u8,
pub ports: [bool; 2],
pub setup_cycles: u32,
pub ack_cycles: u32,
pub last_byte_cycles: u32,
pub timed_gap_cycles: u32,
}Expand description
The engine’s settings.
Fields§
§pacing: BytePacingHow bytes are paced.
kick_every: u8VBlanks between transactions: 1 polls every frame, 2 every other.
ports: [bool; 2]Which ports are polled, [port 1, port 2].
setup_cycles: u32CPU cycles from raising /CS to the first byte. The original SCPH-1200
answers nothing without it (silicon, 2026-06-22); the synchronous
driver’s 1,024 status reads are about 6,900 cycles.
ack_cycles: u32CPU cycles after a byte starts within which its /ACK must arrive,
the byte’s own shift included. The synchronous driver allows 2,048
status reads after the reply, about 13,700 cycles.
last_byte_cycles: u32CPU cycles after the final byte starts at which its reply is read; the device does not acknowledge it. The byte itself shifts in 1,088.
timed_gap_cycles: u32BytePacing::Timed only: CPU cycles after a byte starts before
the next one goes.
Implementations§
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)