Trait drone_core::reg::Reg [] [src]

pub trait Reg<T: RegTag>: Sized {
    type Val: RegVal;

    const ADDRESS: usize;
}

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

Associated Types

Type that wraps a raw register value.

Associated Constants

Memory address of the register.

Implementors