Trait drone_cortexm::reg::field::WRwRegFieldAtomic [−][src]
Atomic operations for writable field of read-write register.
Required methods
fn modify<F>(&self, f: F) where
F: Fn(&mut <Self::Reg as Reg<T>>::Val),
[src][−]
F: Fn(&mut <Self::Reg as Reg<T>>::Val),
Reads the value from the register memory, then passes the value to the
closure f
, then writes the modified value back to the register memory.
This operation is atomic, it repeats itself in case it was interrupted
in the middle. Thus the closure f
may be called multiple times.