pub enum ModifiedWriteValues {
    OneToClear,
    OneToSet,
    OneToToggle,
    ZeroToClear,
    ZeroToSet,
    ZeroToToggle,
    Clear,
    Set,
    Modify,
}
Expand description

Describe the manipulation of data written to a register/field. If not specified, the value written to the field is the value stored in the field

Variants

OneToClear

Write data bit of one shall clear (set to zero) the corresponding bit in the field

OneToSet

Write data bit of one shall set (set to one) the corresponding bit in the field

OneToToggle

Write data bit of one shall toggle (invert) the corresponding bit in the field

ZeroToClear

Write data bit of zero shall clear (set to zero) the corresponding bit in the field

ZeroToSet

Write data bit of zero shall set (set to one) the corresponding bit in the field

ZeroToToggle

Write data bit of zero shall toggle (invert) the corresponding bit in the field

Clear

After a write operation all bits in the field are cleared (set to zero)

Set

After a write operation all bits in the field are set (set to one)

Modify

After a write operation all bit in the field may be modified (default)

Implementations

Parse a string into an ModifiedWriteValues value, returning Option::None if the string is not valid.

Convert this ModifiedWriteValues into a static string.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.