Resettable

Trait Resettable 

Source
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§

Source

const RESET_VALUE: Self::Ux = <Self::Ux>::ZERO

Reset value of the register.

Provided Methods§

Source

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§

Source§

impl Resettable for ControlSpec

reset() method sets CONTROL to value 0

Source§

impl Resettable for DataSpec

reset() method sets DATA to value 0

Source§

impl Resettable for StatusSpec

reset() method sets STATUS to value 0