Trait drone_core::reg::pointer::ValuePointer
[−]
[src]
pub trait ValuePointer<R, A>: ThreadPointer<R, A> { type Value: RawValue<R>; fn read(&self) -> Self::Value { ... } fn write<F>(&self, f: F)
where
F: Fn(&mut Self::Value) -> &Self::Value, { ... } fn modify<F>(&self, f: F)
where
F: Fn(&mut Self::Value) -> &Self::Value, { ... } }
Register pointer with an associated value wrapper.
Associated Types
Provided Methods
fn read(&self) -> Self::Value
Reads a wrapped value at the register address.
fn write<F>(&self, f: F) where
F: Fn(&mut Self::Value) -> &Self::Value,
F: Fn(&mut Self::Value) -> &Self::Value,
Writes a wrapped value at the register address.
fn modify<F>(&self, f: F) where
F: Fn(&mut Self::Value) -> &Self::Value,
F: Fn(&mut Self::Value) -> &Self::Value,
Reads, modifies, and writes a wrapped value at the register address.