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

set_control

Function set_control 

Source
pub unsafe fn set_control(ch: Channel, value: u32)
Expand description

Write the channel’s control register. With CHCR_START set this starts a transfer from whatever the address and size registers hold. For a block-sync kick that holds only once per size store, because the transfer spends the block count (see set_size).

§Safety

A value with CHCR_START set must satisfy super::start’s contract for the transfer it starts. A value without it (such as 0, an abort) starts nothing.