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

set_address

Function set_address 

Source
pub unsafe fn set_address(ch: Channel, addr: u32)
Expand description

Write the channel’s RAM address register.

§Safety

The value arms the next transfer on ch: the caller takes on super::start’s contract for whatever transfer later starts with it.

With the present-queue feature, a store to the GPU channel first runs an armed direct-access guard (gpu::arm_direct_access_guard), so it never re-arms the channel under a queued walk. Every GPU DMA start, super::start included, goes through here.