pub struct Bitfield {
pub name: String,
pub caption: String,
pub mask: u32,
pub size: u32,
pub values: Option<String>,
}
Expand description
A bitfield within a register.
Fields§
§name: String
The name of the bitfield, such as U2X0
for the USART register UCSR0A
.
caption: String
A description of the bitfield.
mask: u32
The mask that makes up the bitfield.
This will always match up to the parent register. A 16-bit register has 16-but masks.
size: u32
The number of bytes that make up the bitfield.
values: Option<String>
reference into value_groups on the container
Trait Implementations§
Source§impl PartialOrd for Bitfield
impl PartialOrd for Bitfield
impl Eq for Bitfield
impl StructuralPartialEq for Bitfield
Auto Trait Implementations§
impl Freeze for Bitfield
impl RefUnwindSafe for Bitfield
impl Send for Bitfield
impl Sync for Bitfield
impl Unpin for Bitfield
impl UnwindSafe for Bitfield
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