Trait drone_core::reg::prelude::WRegUnique
[−]
[src]
pub trait WRegUnique<'a>: WReg<Utt> + RegRef<'a, Utt> { fn reset<F>(&'a mut self, f: F)
where
F: for<'b> FnOnce(&'b mut Self::Hold) -> &'b mut Self::Hold; fn store_val(&mut self, val: Self::Val); fn store_default(&'a mut self); }
Register that can write its value in a single-threaded context.
Required Methods
fn reset<F>(&'a mut self, f: F) where
F: for<'b> FnOnce(&'b mut Self::Hold) -> &'b mut Self::Hold,
F: for<'b> FnOnce(&'b mut Self::Hold) -> &'b mut Self::Hold,
Updates a new reset value with f and writes the result to the register's
memory address.
fn store_val(&mut self, val: Self::Val)
Writes val into the register.
fn store_default(&'a mut self)
Writes the reset value to the register.