pub struct ErrorStatus { /* private fields */ }Expand description
Error Status Register (ESR).
Implementations§
Source§impl ErrorStatus
impl ErrorStatus
Source§impl ErrorStatus
impl ErrorStatus
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 ErrorStatus
impl ErrorStatus
Sourcepub fn send_cs_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn send_cs_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of send_cs.
#Errors
If the returned value contains an invalid bit pattern for send_cs.
Sourcepub fn with_send_cs(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_send_cs(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of send_cs set to the given value.
#Panics
If the given value is out of bounds for send_cs.
Sourcepub fn with_send_cs_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_send_cs_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of send_cs set to the given value.
#Errors
If the given value is out of bounds for send_cs.
Sourcepub fn set_send_cs(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_send_cs(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of send_cs to the given value.
#Panics
If the given value is out of bounds for send_cs.
Sourcepub fn set_send_cs_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_send_cs_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of send_cs to the given value.
#Errors
If the given value is out of bounds for send_cs.
Sourcepub fn recv_cs_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn recv_cs_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of recv_cs.
#Errors
If the returned value contains an invalid bit pattern for recv_cs.
Sourcepub fn with_recv_cs(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_recv_cs(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of recv_cs set to the given value.
#Panics
If the given value is out of bounds for recv_cs.
Sourcepub fn with_recv_cs_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_recv_cs_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of recv_cs set to the given value.
#Errors
If the given value is out of bounds for recv_cs.
Sourcepub fn set_recv_cs(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_recv_cs(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of recv_cs to the given value.
#Panics
If the given value is out of bounds for recv_cs.
Sourcepub fn set_recv_cs_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_recv_cs_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of recv_cs to the given value.
#Errors
If the given value is out of bounds for recv_cs.
Sourcepub fn send_accept(&self) -> <B1 as Specifier>::InOut
pub fn send_accept(&self) -> <B1 as Specifier>::InOut
Returns the value of send_accept.
Sourcepub fn send_accept_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn send_accept_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of send_accept.
#Errors
If the returned value contains an invalid bit pattern for send_accept.
Sourcepub fn with_send_accept(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_send_accept(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of send_accept set to the given value.
#Panics
If the given value is out of bounds for send_accept.
Sourcepub fn with_send_accept_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_send_accept_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of send_accept set to the given value.
#Errors
If the given value is out of bounds for send_accept.
Sourcepub fn set_send_accept(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_send_accept(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of send_accept to the given value.
#Panics
If the given value is out of bounds for send_accept.
Sourcepub fn set_send_accept_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_send_accept_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of send_accept to the given value.
#Errors
If the given value is out of bounds for send_accept.
Sourcepub fn recv_accept(&self) -> <B1 as Specifier>::InOut
pub fn recv_accept(&self) -> <B1 as Specifier>::InOut
Returns the value of recv_accept.
Sourcepub fn recv_accept_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn recv_accept_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of recv_accept.
#Errors
If the returned value contains an invalid bit pattern for recv_accept.
Sourcepub fn with_recv_accept(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_recv_accept(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of recv_accept set to the given value.
#Panics
If the given value is out of bounds for recv_accept.
Sourcepub fn with_recv_accept_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_recv_accept_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of recv_accept set to the given value.
#Errors
If the given value is out of bounds for recv_accept.
Sourcepub fn set_recv_accept(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_recv_accept(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of recv_accept to the given value.
#Panics
If the given value is out of bounds for recv_accept.
Sourcepub fn set_recv_accept_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_recv_accept_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of recv_accept to the given value.
#Errors
If the given value is out of bounds for recv_accept.
Sourcepub fn send_illegal_vector(&self) -> <B1 as Specifier>::InOut
pub fn send_illegal_vector(&self) -> <B1 as Specifier>::InOut
Returns the value of send_illegal_vector.
Sourcepub fn send_illegal_vector_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn send_illegal_vector_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of send_illegal_vector.
#Errors
If the returned value contains an invalid bit pattern for send_illegal_vector.
Sourcepub fn with_send_illegal_vector(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_send_illegal_vector(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of send_illegal_vector set to the given value.
#Panics
If the given value is out of bounds for send_illegal_vector.
Sourcepub fn with_send_illegal_vector_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_send_illegal_vector_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of send_illegal_vector set to the given value.
#Errors
If the given value is out of bounds for send_illegal_vector.
Sourcepub fn set_send_illegal_vector(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_send_illegal_vector(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of send_illegal_vector to the given value.
#Panics
If the given value is out of bounds for send_illegal_vector.
Sourcepub fn set_send_illegal_vector_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_send_illegal_vector_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of send_illegal_vector to the given value.
#Errors
If the given value is out of bounds for send_illegal_vector.
Sourcepub fn recv_illegal_vector(&self) -> <B1 as Specifier>::InOut
pub fn recv_illegal_vector(&self) -> <B1 as Specifier>::InOut
Returns the value of recv_illegal_vector.
Sourcepub fn recv_illegal_vector_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn recv_illegal_vector_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of recv_illegal_vector.
#Errors
If the returned value contains an invalid bit pattern for recv_illegal_vector.
Sourcepub fn with_recv_illegal_vector(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_recv_illegal_vector(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of recv_illegal_vector set to the given value.
#Panics
If the given value is out of bounds for recv_illegal_vector.
Sourcepub fn with_recv_illegal_vector_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_recv_illegal_vector_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of recv_illegal_vector set to the given value.
#Errors
If the given value is out of bounds for recv_illegal_vector.
Sourcepub fn set_recv_illegal_vector(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_recv_illegal_vector(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of recv_illegal_vector to the given value.
#Panics
If the given value is out of bounds for recv_illegal_vector.
Sourcepub fn set_recv_illegal_vector_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_recv_illegal_vector_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of recv_illegal_vector to the given value.
#Errors
If the given value is out of bounds for recv_illegal_vector.
Sourcepub fn illegal_register_addr(&self) -> <B1 as Specifier>::InOut
pub fn illegal_register_addr(&self) -> <B1 as Specifier>::InOut
Returns the value of illegal_register_addr.
Sourcepub fn illegal_register_addr_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn illegal_register_addr_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of illegal_register_addr.
#Errors
If the returned value contains an invalid bit pattern for illegal_register_addr.
Sourcepub fn with_illegal_register_addr(
self,
new_val: <B1 as Specifier>::InOut,
) -> Self
pub fn with_illegal_register_addr( self, new_val: <B1 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of illegal_register_addr set to the given value.
#Panics
If the given value is out of bounds for illegal_register_addr.
Sourcepub fn with_illegal_register_addr_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_illegal_register_addr_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of illegal_register_addr set to the given value.
#Errors
If the given value is out of bounds for illegal_register_addr.
Sourcepub fn set_illegal_register_addr(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_illegal_register_addr(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of illegal_register_addr to the given value.
#Panics
If the given value is out of bounds for illegal_register_addr.
Sourcepub fn set_illegal_register_addr_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_illegal_register_addr_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of illegal_register_addr to the given value.
#Errors
If the given value is out of bounds for illegal_register_addr.
Trait Implementations§
Source§impl Clone for ErrorStatus
impl Clone for ErrorStatus
Source§fn clone(&self) -> ErrorStatus
fn clone(&self) -> ErrorStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more