pub struct InterruptCmdHigh { /* private fields */ }
Expand description
Interrupt Command Register High (bits 63:32).
Implementations§
Source§impl InterruptCmdHigh
impl InterruptCmdHigh
Sourcepub const fn into_bytes(self) -> [u8; 16]
pub const fn into_bytes(self) -> [u8; 16]
Sourcepub const fn from_bytes(bytes: [u8; 16]) -> Self
pub const fn from_bytes(bytes: [u8; 16]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl InterruptCmdHigh
impl InterruptCmdHigh
Sourcepub fn dst_or_err(
&self,
) -> Result<<u8 as Specifier>::InOut, InvalidBitPattern<<u8 as Specifier>::Bytes>>
pub fn dst_or_err( &self, ) -> Result<<u8 as Specifier>::InOut, InvalidBitPattern<<u8 as Specifier>::Bytes>>
Returns the value of dst.
#Errors
If the returned value contains an invalid bit pattern for dst.
Sourcepub fn with_dst(self, new_val: <u8 as Specifier>::InOut) -> Self
pub fn with_dst(self, new_val: <u8 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of dst set to the given value.
#Panics
If the given value is out of bounds for dst.
Sourcepub fn with_dst_checked(
self,
new_val: <u8 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_dst_checked( self, new_val: <u8 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of dst set to the given value.
#Errors
If the given value is out of bounds for dst.
Sourcepub fn set_dst(&mut self, new_val: <u8 as Specifier>::InOut)
pub fn set_dst(&mut self, new_val: <u8 as Specifier>::InOut)
Sets the value of dst to the given value.
#Panics
If the given value is out of bounds for dst.
Sourcepub fn set_dst_checked(
&mut self,
new_val: <u8 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_dst_checked( &mut self, new_val: <u8 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of dst to the given value.
#Errors
If the given value is out of bounds for dst.
Trait Implementations§
Source§impl Clone for InterruptCmdHigh
impl Clone for InterruptCmdHigh
Source§fn clone(&self) -> InterruptCmdHigh
fn clone(&self) -> InterruptCmdHigh
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InterruptCmdHigh
impl Debug for InterruptCmdHigh
Source§impl Default for InterruptCmdHigh
impl Default for InterruptCmdHigh
Source§fn default() -> InterruptCmdHigh
fn default() -> InterruptCmdHigh
Returns the “default value” for a type. Read more
Source§impl PartialEq for InterruptCmdHigh
impl PartialEq for InterruptCmdHigh
impl Copy for InterruptCmdHigh
impl Eq for InterruptCmdHigh
impl StructuralPartialEq for InterruptCmdHigh
Auto Trait Implementations§
impl Freeze for InterruptCmdHigh
impl RefUnwindSafe for InterruptCmdHigh
impl Send for InterruptCmdHigh
impl Sync for InterruptCmdHigh
impl Unpin for InterruptCmdHigh
impl UnwindSafe for InterruptCmdHigh
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