Trait drone_cortexm::reg::WRegUnsync [−][src]
Non-atomic operations for writable register.
Required methods
pub fn store<F>(&'a mut self, f: F) where
F: for<'b> FnOnce(&'b mut Self::Hold) -> &'b mut Self::Hold, [src]
F: for<'b> FnOnce(&'b mut Self::Hold) -> &'b mut Self::Hold,
Passes the reset value to the closure f, then writes the result of the
closure into the register memory.
See also store_reg,
store_val,
store_bits.
pub fn store_reg<F>(&'a mut self, f: F) where
F: for<'b> FnOnce(&'b Self, &'b mut Self::Val), [src]
F: for<'b> FnOnce(&'b Self, &'b mut Self::Val),
Passes a reference to this register token and the reset value to the
closure f, then writes the modified value into the register memory.
See also store,
store_val,
store_bits.
pub fn store_val(&mut self, val: Self::Val)[src]
Writes an opaque value val into the register memory.
See also store,
store_bits.
pub fn store_bits(&mut self, bits: <Self::Val as Bitfield>::Bits)[src]
pub fn reset(&'a mut self)[src]
Writes the reset value into the register memory.
Implementors
impl<'a, R> WRegUnsync<'a> for R where
R: WReg<Urt> + RegRef<'a, Urt>, [src]
R: WReg<Urt> + RegRef<'a, Urt>,
pub fn store<F>(&'a mut self, f: F) where
F: for<'b> FnOnce(&'b mut <R as RegRef<'a, Urt>>::Hold) -> &'b mut <R as RegRef<'a, Urt>>::Hold, [src]
F: for<'b> FnOnce(&'b mut <R as RegRef<'a, Urt>>::Hold) -> &'b mut <R as RegRef<'a, Urt>>::Hold,
pub fn store_reg<F>(&'a mut self, f: F) where
F: for<'b> FnOnce(&'b R, &'b mut <R as Reg<Urt>>::Val), [src]
F: for<'b> FnOnce(&'b R, &'b mut <R as Reg<Urt>>::Val),