Skip to main content

next

Function next 

Source
pub unsafe fn next(state: *mut u32) -> u32
Expand description

Advance state by one step and return the new value.

ยงSafety

state must be a valid, exclusively-owned *mut u32. Single-threaded RTOS init code typically guarantees this; SMP callers must wrap in a critical section.