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

size_blocks

Function size_blocks 

Source
pub const fn size_blocks(block_size: u16, block_count: u16) -> u32
Expand description

Size word for block sync: block_count blocks of block_size words.

A zero field means 0x1_0000 on silicon, so a zero count is a 65,536-block transfer, not an empty one. The same goes for a count the controller has already counted down: silicon decrements the block field as blocks finish and leaves 0 behind, so the value is spent by the kick it armed. Store a fresh one before every block-sync kick (start does).