pub trait Resettable: RegisterSpec {
const RESET_VALUE: Self::Ux = <Self::Ux>::ZERO;
// Provided method
fn reset_value() -> Self::Ux { ... }
}Expand description
Reset value of the register.
This value is the initial value for the write method. It can also be directly written to the
register by using the reset method.
Provided Associated Constants§
Sourceconst RESET_VALUE: Self::Ux = <Self::Ux>::ZERO
const RESET_VALUE: Self::Ux = <Self::Ux>::ZERO
Reset value of the register.
Provided Methods§
Sourcefn reset_value() -> Self::Ux
fn reset_value() -> Self::Ux
Reset value of the register.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl Resettable for ControlSpec
reset() method sets CONTROL to value 0
impl Resettable for DataSpec
reset() method sets DATA to value 0
impl Resettable for StatusSpec
reset() method sets STATUS to value 0