Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

PauseDrive

Trait PauseDrive 

Source
pub trait PauseDrive {
    // Required methods
    fn send_pause(&mut self) -> PauseAnswer;
    fn wait_completion(&mut self, spins: u32) -> Completion;
    fn status(&mut self) -> Option<u8>;
    fn wait_seek_end(&mut self, spins: u32) -> bool;
}
Expand description

What pause_until_stopped needs from the controller. Each method is one polled controller step; the implementor owns masking and acknowledging.

Required Methods§

Source

fn send_pause(&mut self) -> PauseAnswer

Send Pause and wait for its first response.

Source

fn wait_completion(&mut self, spins: u32) -> Completion

Wait up to spins for the second response. Data sectors still arriving from the interrupted read are consumed and acknowledged meanwhile.

Source

fn status(&mut self) -> Option<u8>

GetStat: the status byte, None when it did not answer. Cancels a second response still pending.

Source

fn wait_seek_end(&mut self, spins: u32) -> bool

After a refusal: wait up to spins for the read to deliver its first sector (consuming it), which ends the seek. false if none came.

Implementors§