Struct tock_registers::registers::ReadOnly
source · pub struct ReadOnly<T: UIntLike, R: RegisterLongName = ()> { /* private fields */ }
Expand description
Read-only registers.
For accessing the register contents the Readable
trait is
implemented.
Trait Implementations§
source§impl<T: UIntLike, R: RegisterLongName> Readable for ReadOnly<T, R>
impl<T: UIntLike, R: RegisterLongName> Readable for ReadOnly<T, R>
type T = T
type R = R
source§fn read_as_enum<E: TryFromValue<Self::T, EnumType = E>>(
&self,
field: Field<Self::T, Self::R>,
) -> Option<E>
fn read_as_enum<E: TryFromValue<Self::T, EnumType = E>>( &self, field: Field<Self::T, Self::R>, ) -> Option<E>
Set the raw register value Read more
source§fn is_set(&self, field: Field<Self::T, Self::R>) -> bool
fn is_set(&self, field: Field<Self::T, Self::R>) -> bool
Check if one or more bits in a field are set
source§fn matches_any(&self, field: FieldValue<Self::T, Self::R>) -> bool
fn matches_any(&self, field: FieldValue<Self::T, Self::R>) -> bool
Check if any specified parts of a field match
source§fn matches_all(&self, field: FieldValue<Self::T, Self::R>) -> bool
fn matches_all(&self, field: FieldValue<Self::T, Self::R>) -> bool
Check if all specified parts of a field match