Module drone::reg [] [src]

Safe API for memory-mapped registers.

Modules

prelude

Memory-mapped registers prelude.

Structs

Ar

Zero-sized marker type for thread-safe register bindings. "Ar" stands for "Atomic register". Does implement Send, Sync, 'Clone', 'Copy'.

Lr

Zero-sized marker type for thread-unsafe register bindings. "Lr" stands for "Local Register". Does not implement Send, Sync, 'Clone', 'Copy'.

Traits

RReg

Register that can read its value.

Reg

Memory-mapped register binding. Types which implement this trait should be zero-sized. This is a zero-cost abstraction for safely working with memory-mapped registers.

RegFlavor

Marker trait for various register flavors.

RegRaw

Raw register value type.

RegValue

Wrapper for a corresponding register's value.

RwLocalReg

Register that can read and write its value in a single-threaded context.

WReg

Register that can write its value.