pub trait Write<T: UIntLike> {
type Reg: RegisterLongName;
const REG_WIDTH: usize;
// Required methods
fn set(&self, value: T);
fn write(&self, field: FieldValue<T, Self::Reg>);
}
Expand description
Writeable register
This interface is analogous to the methods supported on
tock_registers::registers::{WriteOnly, ReadWrite}
types
It is automatically implemented for all BaseWriteableRegister
s
Required Associated Constants§
Required Associated Types§
type Reg: RegisterLongName
Required Methods§
Sourcefn write(&self, field: FieldValue<T, Self::Reg>)
fn write(&self, field: FieldValue<T, Self::Reg>)
Write the value of one or more fields, overwriting the other fields with zero
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.