Trait drone::reg::WReg
[−]
[src]
pub trait WReg<T> where
Self: Reg<T>,
T: RegFlavor, { fn write_value(&self, value: &Self::Value) { ... } fn write<F>(&self, f: F)
where
F: FnOnce(&mut Self::Value) -> &Self::Value, { ... } fn write_raw(&self, value: <Self::Value as RegValue>::Raw) { ... } fn to_mut_ptr(&self) -> *mut <Self::Value as RegValue>::Raw { ... } }
Register that can write its value.
Provided Methods
fn write_value(&self, value: &Self::Value)
Writes a wrapped register value to its memory address.
fn write<F>(&self, f: F) where
F: FnOnce(&mut Self::Value) -> &Self::Value,
F: FnOnce(&mut Self::Value) -> &Self::Value,
Calls f
on a default value and writes the result to the register's
memory address.
fn write_raw(&self, value: <Self::Value as RegValue>::Raw)
Writes a raw register value to its memory address.
fn to_mut_ptr(&self) -> *mut <Self::Value as RegValue>::Raw
Returns an unsafe mutable pointer to the register's memory address.