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
Associated Constants
const ADDRESS: usize
Memory address of the register.
Required Methods
unsafe fn bind() -> Self
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.