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
sourceimpl ModifiedWriteValues
impl ModifiedWriteValues
sourcepub fn parse_str(s: &str) -> Option<Self>
pub fn parse_str(s: &str) -> Option<Self>
Parse a string into an ModifiedWriteValues
value, returning Option::None
if the string is not valid.
sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Convert this ModifiedWriteValues
into a static string.
Trait Implementations
sourceimpl Clone for ModifiedWriteValues
impl Clone for ModifiedWriteValues
sourcefn clone(&self) -> ModifiedWriteValues
fn clone(&self) -> ModifiedWriteValues
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ModifiedWriteValues
impl Debug for ModifiedWriteValues
sourceimpl Default for ModifiedWriteValues
impl Default for ModifiedWriteValues
impl Copy for ModifiedWriteValues
impl StructuralPartialEq for ModifiedWriteValues
Auto Trait Implementations
impl RefUnwindSafe for ModifiedWriteValues
impl Send for ModifiedWriteValues
impl Sync for ModifiedWriteValues
impl Unpin for ModifiedWriteValues
impl UnwindSafe for ModifiedWriteValues
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more