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§
Sourcefn send_pause(&mut self) -> PauseAnswer
fn send_pause(&mut self) -> PauseAnswer
Send Pause and wait for its first response.
Sourcefn wait_completion(&mut self, spins: u32) -> Completion
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.
Sourcefn status(&mut self) -> Option<u8>
fn status(&mut self) -> Option<u8>
GetStat: the status byte, None when it did not answer. Cancels a
second response still pending.
Sourcefn wait_seek_end(&mut self, spins: u32) -> bool
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.