Trait drone::reg::Reg [] [src]

pub trait Reg<T> where
    Self: Sized,
    T: RegFlavor
{ type Value: RegValue; const ADDRESS: usize; unsafe fn bind() -> Self; }

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.

Associated Types

Type that wraps a raw register value.

Associated Constants

Memory address of the register.

Required Methods

Register binding constructor. All the safety of the memory-mapped registers interface is based on a contract that this method must be called no more than once for a particular register in the whole program.

Implementors