docs

You are reading the docs for v0.1.0. Nabi 0.1.0 is no longer supported. Latest release: v0.1.3 →

bare::volatile

accesses the optimizer keeps exactly as written: MMIO, signal flags, DMA buffers. Not atomic.

Functions

readSource

pub unsafe fn read<T>(src: ConstPtr<T>) -> T

The T at src, read exactly once as written. UB unless it points at a live, initialized T.

writeSource

pub unsafe fn write<T>(dst: Ptr<T>, value: T)

Store value at dst, written exactly once as written. UB unless dst is writable T memory.