Struct tock_registers::registers::InMemoryRegister[][src]

#[repr(transparent)]
pub struct InMemoryRegister<T: UIntLike, R: RegisterLongName = ()> { /* fields omitted */ }
Expand description

In memory volatile register.

Like ReadWrite, but can be safely constructed using the InMemoryRegister::new method. It will always be initialized to the passed in, well-defined initial value.

For accessing and manipulating the register contents, the Readable, Writeable and ReadWriteable traits are implemented.

Implementations

Trait Implementations

Get the raw register value

Read the value of the given field

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

Set the raw register value

Write the value of one or more fields, overwriting the other fields with zero

Write the value of one or more fields, maintaining the value of unchanged fields via a provided original value, rather than a register read. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Write the value of one or more fields, leaving the other fields unchanged

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.