[][src]Trait drone_core::reg::WRegUnsync

pub trait WRegUnsync<'a>: WReg<Urt> + RegRef<'a, Urt> {
    fn store<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 reset(&'a mut self); }

Non-atomic operations for writable register.

Required methods

fn store<F>(&'a mut self, f: F) where
    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_val.

fn store_val(&mut self, val: Self::Val)

Writes an opaque value val into the register memory.

See also store.

fn reset(&'a mut self)

Writes the reset value into the register memory.

Loading content...

Implementors

impl<'a, R> WRegUnsync<'a> for R where
    R: WReg<Urt> + RegRef<'a, Urt>, 
[src]

Loading content...