pub struct ContextAttributes { /* private fields */ }
Implementations§
source§impl ContextAttributes
impl ContextAttributes
sourcepub const fn into_bytes(self) -> [u8; 4]
pub const fn into_bytes(self) -> [u8; 4]
sourcepub const fn from_bytes(bytes: [u8; 4]) -> Self
pub const fn from_bytes(bytes: [u8; 4]) -> Self
Converts the given bytes directly into the bitfield struct.
source§impl ContextAttributes
impl ContextAttributes
sourcepub fn access_frequency(&self) -> <AccessFrequency as Specifier>::InOut
pub fn access_frequency(&self) -> <AccessFrequency as Specifier>::InOut
Returns the value of access_frequency.
sourcepub fn access_frequency_or_err(
&self,
) -> Result<<AccessFrequency as Specifier>::InOut, InvalidBitPattern<<AccessFrequency as Specifier>::Bytes>>
pub fn access_frequency_or_err( &self, ) -> Result<<AccessFrequency as Specifier>::InOut, InvalidBitPattern<<AccessFrequency as Specifier>::Bytes>>
Returns the value of access_frequency.
#Errors
If the returned value contains an invalid bit pattern for access_frequency.
sourcepub fn with_access_frequency(
self,
new_val: <AccessFrequency as Specifier>::InOut,
) -> Self
pub fn with_access_frequency( self, new_val: <AccessFrequency as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of access_frequency set to the given value.
#Panics
If the given value is out of bounds for access_frequency.
sourcepub fn with_access_frequency_checked(
self,
new_val: <AccessFrequency as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_access_frequency_checked( self, new_val: <AccessFrequency as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of access_frequency set to the given value.
#Errors
If the given value is out of bounds for access_frequency.
sourcepub fn set_access_frequency(
&mut self,
new_val: <AccessFrequency as Specifier>::InOut,
)
pub fn set_access_frequency( &mut self, new_val: <AccessFrequency as Specifier>::InOut, )
Sets the value of access_frequency to the given value.
#Panics
If the given value is out of bounds for access_frequency.
sourcepub fn set_access_frequency_checked(
&mut self,
new_val: <AccessFrequency as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_access_frequency_checked( &mut self, new_val: <AccessFrequency as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of access_frequency to the given value.
#Errors
If the given value is out of bounds for access_frequency.
sourcepub fn access_latency(&self) -> <AccessLatency as Specifier>::InOut
pub fn access_latency(&self) -> <AccessLatency as Specifier>::InOut
Returns the value of access_latency.
sourcepub fn access_latency_or_err(
&self,
) -> Result<<AccessLatency as Specifier>::InOut, InvalidBitPattern<<AccessLatency as Specifier>::Bytes>>
pub fn access_latency_or_err( &self, ) -> Result<<AccessLatency as Specifier>::InOut, InvalidBitPattern<<AccessLatency as Specifier>::Bytes>>
Returns the value of access_latency.
#Errors
If the returned value contains an invalid bit pattern for access_latency.
sourcepub fn with_access_latency(
self,
new_val: <AccessLatency as Specifier>::InOut,
) -> Self
pub fn with_access_latency( self, new_val: <AccessLatency as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of access_latency set to the given value.
#Panics
If the given value is out of bounds for access_latency.
sourcepub fn with_access_latency_checked(
self,
new_val: <AccessLatency as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_access_latency_checked( self, new_val: <AccessLatency as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of access_latency set to the given value.
#Errors
If the given value is out of bounds for access_latency.
sourcepub fn set_access_latency(
&mut self,
new_val: <AccessLatency as Specifier>::InOut,
)
pub fn set_access_latency( &mut self, new_val: <AccessLatency as Specifier>::InOut, )
Sets the value of access_latency to the given value.
#Panics
If the given value is out of bounds for access_latency.
sourcepub fn set_access_latency_checked(
&mut self,
new_val: <AccessLatency as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_access_latency_checked( &mut self, new_val: <AccessLatency as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of access_latency to the given value.
#Errors
If the given value is out of bounds for access_latency.
sourcepub fn seq_read_range(&self) -> <bool as Specifier>::InOut
pub fn seq_read_range(&self) -> <bool as Specifier>::InOut
Returns the value of seq_read_range.
sourcepub fn seq_read_range_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn seq_read_range_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of seq_read_range.
#Errors
If the returned value contains an invalid bit pattern for seq_read_range.
sourcepub fn with_seq_read_range(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_seq_read_range(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of seq_read_range set to the given value.
#Panics
If the given value is out of bounds for seq_read_range.
sourcepub fn with_seq_read_range_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_seq_read_range_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of seq_read_range set to the given value.
#Errors
If the given value is out of bounds for seq_read_range.
sourcepub fn set_seq_read_range(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_seq_read_range(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of seq_read_range to the given value.
#Panics
If the given value is out of bounds for seq_read_range.
sourcepub fn set_seq_read_range_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_seq_read_range_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of seq_read_range to the given value.
#Errors
If the given value is out of bounds for seq_read_range.
sourcepub fn seq_write_range(&self) -> <bool as Specifier>::InOut
pub fn seq_write_range(&self) -> <bool as Specifier>::InOut
Returns the value of seq_write_range.
sourcepub fn seq_write_range_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn seq_write_range_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of seq_write_range.
#Errors
If the returned value contains an invalid bit pattern for seq_write_range.
sourcepub fn with_seq_write_range(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_seq_write_range(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of seq_write_range set to the given value.
#Panics
If the given value is out of bounds for seq_write_range.
sourcepub fn with_seq_write_range_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_seq_write_range_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of seq_write_range set to the given value.
#Errors
If the given value is out of bounds for seq_write_range.
sourcepub fn set_seq_write_range(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_seq_write_range(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of seq_write_range to the given value.
#Panics
If the given value is out of bounds for seq_write_range.
sourcepub fn set_seq_write_range_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_seq_write_range_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of seq_write_range to the given value.
#Errors
If the given value is out of bounds for seq_write_range.
sourcepub fn write_prepare(&self) -> <bool as Specifier>::InOut
pub fn write_prepare(&self) -> <bool as Specifier>::InOut
Returns the value of write_prepare.
sourcepub fn write_prepare_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn write_prepare_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of write_prepare.
#Errors
If the returned value contains an invalid bit pattern for write_prepare.
sourcepub fn with_write_prepare(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_write_prepare(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of write_prepare set to the given value.
#Panics
If the given value is out of bounds for write_prepare.
sourcepub fn with_write_prepare_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_write_prepare_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of write_prepare set to the given value.
#Errors
If the given value is out of bounds for write_prepare.
sourcepub fn set_write_prepare(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_write_prepare(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of write_prepare to the given value.
#Panics
If the given value is out of bounds for write_prepare.
sourcepub fn set_write_prepare_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_write_prepare_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of write_prepare to the given value.
#Errors
If the given value is out of bounds for write_prepare.
sourcepub fn command_access_size(&self) -> <u8 as Specifier>::InOut
pub fn command_access_size(&self) -> <u8 as Specifier>::InOut
Returns the value of command_access_size.
sourcepub fn command_access_size_or_err(
&self,
) -> Result<<u8 as Specifier>::InOut, InvalidBitPattern<<u8 as Specifier>::Bytes>>
pub fn command_access_size_or_err( &self, ) -> Result<<u8 as Specifier>::InOut, InvalidBitPattern<<u8 as Specifier>::Bytes>>
Returns the value of command_access_size.
#Errors
If the returned value contains an invalid bit pattern for command_access_size.
sourcepub fn with_command_access_size(self, new_val: <u8 as Specifier>::InOut) -> Self
pub fn with_command_access_size(self, new_val: <u8 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of command_access_size set to the given value.
#Panics
If the given value is out of bounds for command_access_size.
sourcepub fn with_command_access_size_checked(
self,
new_val: <u8 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_command_access_size_checked( self, new_val: <u8 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of command_access_size set to the given value.
#Errors
If the given value is out of bounds for command_access_size.
sourcepub fn set_command_access_size(&mut self, new_val: <u8 as Specifier>::InOut)
pub fn set_command_access_size(&mut self, new_val: <u8 as Specifier>::InOut)
Sets the value of command_access_size to the given value.
#Panics
If the given value is out of bounds for command_access_size.
sourcepub fn set_command_access_size_checked(
&mut self,
new_val: <u8 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_command_access_size_checked( &mut self, new_val: <u8 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of command_access_size to the given value.
#Errors
If the given value is out of bounds for command_access_size.