Trait drone_core::reg::field::WoWoRegField[][src]

pub trait WoWoRegField<T: RegTag> where
    Self: WoWRegField<T>,
    Self::Reg: WoReg<T>, 
{ fn default_val(&self) -> <Self::Reg as Reg<T>>::Val;
fn store_val(&self, val: <Self::Reg as Reg<T>>::Val);
fn store<F>(&self, f: F)
    where
        F: Fn(&mut <Self::Reg as Reg<T>>::Val)
; }

Write-only field of write-only register.

Required methods

fn default_val(&self) -> <Self::Reg as Reg<T>>::Val[src]

Creates a new opaque register value, and initializes it with the reset value.

fn store_val(&self, val: <Self::Reg as Reg<T>>::Val)[src]

Writes an opaque value val into the register memory.

See also store.

fn store<F>(&self, f: F) where
    F: Fn(&mut <Self::Reg as Reg<T>>::Val), 
[src]

Passes the opaque reset value to the closure f, then writes the result of the closure into the register memory.

See also store_val.

Loading content...

Implementors

impl<T, R> WoWoRegField<T> for R where
    T: RegTag,
    R: WoWRegField<T>,
    R::Reg: WoReg<T>, 
[src]

Loading content...