pub struct ScsiSwitches {
pub sel_to_command_phase: i64,
pub next_command_byte_req: i64,
pub test_unit_ready: i64,
pub toc_answer: i64,
pub subq_answer: i64,
pub done_status: i64,
pub abort_to_command: i64,
pub ack_clear: i64,
pub sector_clocks: i64,
pub reread_penalty_ms: i64,
pub seek_scale: f64,
pub toc_answer_bytes: [usize; 3],
}Expand description
Timing (master clocks), provisional; tier in the comment. The reference’s ScsiBus class
attributes, with its defaults.
[emu: Mesen2, “approximations … haven’t been validated beyond what validator.pce checks”] Mesen2 counts these in units of 3 master clocks (one fast CPU cycle); converted here.
Fields§
§sel_to_command_phase: i64tier 5: SEL to the drive entering the command phase
next_command_byte_req: i64tier 5: REQ for the next command byte
test_unit_ready: i64tier 5, deliberately ~100x shorter than the real spin-up
toc_answer: i64tier 5
subq_answer: i64tier 5
done_status: i64tier 5: last data byte taken to the good status
abort_to_command: i64tier 5: SEL during data in (“verificator.pce”)
ack_clear: i64tier 5: an auto-ack pulse (“hardware measurements show ~1 us”)
sector_clocks: i64[hw: Red Book] single speed: 75 sectors a second; one sector’s bytes are delivered this often (tier 2 for the rate, the delivery phase is U8).
reread_penalty_ms: i64[emu: Mesen2 comment, Sherlock Holmes] software that misses a sector waits for a re-read; tier 5
seek_scale: f64The seek model is seek.rs (Shadoff’s measurements, tier 3 for the shape).
toc_answer_bytes: [usize; 3]Bytes in the READ TOC answers for kinds 0 (first/last track), 1 (lead-out), 2 (a track). Mednafen sends 2, 3, 4 (“returned data lengths on real PCE are not confirmed”, its own comment); Mesen2 sends 4, 4, 4 (C15). Tier 5 both; the BIOS must read the same number.
Trait Implementations§
Source§impl Clone for ScsiSwitches
impl Clone for ScsiSwitches
Source§fn clone(&self) -> ScsiSwitches
fn clone(&self) -> ScsiSwitches
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more