pub struct Register {
pub name: String,
pub caption: String,
pub offset: u32,
pub size: u32,
pub mask: Option<u32>,
pub rw: ReadWrite,
pub bitfields: Vec<Bitfield>,
}
Expand description
An CPU or IO register.
Fields§
§name: String
The name of the register, such as TCCR0A
.
caption: String
The register description.
offset: u32
The offset of the register in IO space.
size: u32
The number of bytes that make up the bitfield.
mask: Option<u32>
§rw: ReadWrite
The mutability of the register.
bitfields: Vec<Bitfield>
The bitfields supported by the register.
Implementations§
Trait Implementations§
Source§impl PartialOrd for Register
impl PartialOrd for Register
impl Eq for Register
impl StructuralPartialEq for Register
Auto Trait Implementations§
impl Freeze for Register
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnwindSafe for Register
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more