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

pub trait WoWoRegField<T: RegTag> where
    Self: WoWRegField<T>,
    Self::Reg: WoReg<T>, 
{ pub fn default_val(&self) -> <Self::Reg as Reg<T>>::Val;
pub fn store_val(&self, val: <Self::Reg as Reg<T>>::Val);
pub 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

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

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

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

Writes an opaque value val into the register memory.

See also store.

pub 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...