pub unsafe fn start(
destination: *mut u32,
sectors: u32,
byte_len: u32,
timeout_vblanks: u32,
) -> boolExpand description
Hand the sectors of a read the caller has just started to the CD interrupt handler.
Call it right after SectorReader::start_read (or any polled start of a
ReadN stream) returned true. sectors sectors are stored back to back at
destination; with byte_len between (sectors - 1) * 2048 + 1 and
sectors * 2048 only that many bytes are written (rounded up to a word), so
a transfer never writes past a chunk that does not end on a sector boundary.
With timeout_vblanks VBlanks passing without a sector the drain fails
(DrainFailure::Watchdog).
Returns false, starting nothing, if the arguments are empty or
misaligned.
§Safety
destination must be word-aligned and valid for writes of the bytes above,
and nothing else may read or write them until the drain has finished or been
cancelled. The caller must hold to the rules in the module documentation:
the controller is the drain’s until then.