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

stop_and_wait

Function stop_and_wait 

Source
pub fn stop_and_wait(max_vblanks: u32) -> bool
Expand description

Cancel every read and wait, for at most max_vblanks VBlanks, until the drive has stopped and nothing is queued. true once it has: polled commands can follow.

Cancelling takes effect at the next sector (the handler drops it and pauses the drive itself), so this normally returns within a few milliseconds; a console Pause after a long read can take a few frames. The wait also gives up after a fixed number of polls, so a stopped VBlank clock cannot hang it.