mmio-rs 0.2.0

Zero-overhead, no_std memory-mapped I/O register abstraction
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Marker trait for register types that support reading.
pub trait Readable {}
/// Marker trait for register types that support writing.
pub trait Writeable {}

/// Access marker: register can only be read.
pub struct ReadOnly;
/// Access marker: register can only be written.
pub struct WriteOnly;
/// Access marker: register can be both read and written.
pub struct ReadWrite;

impl Readable for ReadOnly {}
impl Writeable for WriteOnly {}
impl Readable for ReadWrite {}
impl Writeable for ReadWrite {}