mmio_rs/access.rs
1/// Marker trait for register types that support reading.
2pub trait Readable {}
3/// Marker trait for register types that support writing.
4pub trait Writeable {}
5
6/// Access marker: register can only be read.
7pub struct ReadOnly;
8/// Access marker: register can only be written.
9pub struct WriteOnly;
10/// Access marker: register can be both read and written.
11pub struct ReadWrite;
12
13impl Readable for ReadOnly {}
14impl Writeable for WriteOnly {}
15impl Readable for ReadWrite {}
16impl Writeable for ReadWrite {}