Struct tock_registers::registers::ReadOnly [−][src]
#[repr(transparent)]pub struct ReadOnly<T: UIntLike, R: RegisterLongName = ()> { /* fields omitted */ }
Expand description
Read-only registers.
For accessing the register contents the Readable
trait is
implemented.
Trait Implementations
type T = T
type R = R
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
Make a local copy of the register
Check if one or more bits in a field are set
Check if any specified parts of a field match
Check if all specified parts of a field match