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

keep_enabled_while_polling

Function keep_enabled_while_polling 

Source
pub fn keep_enabled_while_polling(bits: u32)
Expand description

Ask the polled drivers that cut I_MASK down to VBlank for the length of a stream (the CD SectorReader) to leave bits enabled. For a source whose handler is installed and works alone through interrupts, such as the pad engine’s IRQ7 and root counter 0: cut from the mask, its transaction never advances for as long as the stream runs, and the engine abandons and faults one transaction per VBlank. Call it from foreground code.