pub struct WritableRegisterDto {
pub allow_mask: u32,
pub allow_rmw: bool,
pub offset: u64,
pub precondition_mask: u32,
pub readback: bool,
pub require_precondition: bool,
pub width: u32,
}Expand description
Manifest specification for one writable register.
Fields are declared in alphabetical order to produce deterministic canonical JSON.
Fields§
§allow_mask: u32Allowed writable bitmask.
allow_rmw: boolWhether read-modify-write is allowed.
offset: u64Byte offset from the start of the logical resource.
precondition_mask: u32Valid precondition bitmask.
readback: boolWhether readback is configured/supported.
require_precondition: boolWhether a precondition is required for writes.
width: u32Access width in bytes (must be 4).
Implementations§
Source§impl WritableRegisterDto
impl WritableRegisterDto
pub fn to_writable_register(&self) -> WritableRegister
Trait Implementations§
Source§impl Clone for WritableRegisterDto
impl Clone for WritableRegisterDto
Source§impl Debug for WritableRegisterDto
impl Debug for WritableRegisterDto
Source§impl<'de> Deserialize<'de> for WritableRegisterDto
impl<'de> Deserialize<'de> for WritableRegisterDto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WritableRegisterDto
Source§impl Ord for WritableRegisterDto
impl Ord for WritableRegisterDto
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WritableRegisterDto
impl PartialEq for WritableRegisterDto
Source§impl PartialOrd for WritableRegisterDto
impl PartialOrd for WritableRegisterDto
Source§impl Serialize for WritableRegisterDto
impl Serialize for WritableRegisterDto
impl StructuralPartialEq for WritableRegisterDto
Auto Trait Implementations§
impl Freeze for WritableRegisterDto
impl RefUnwindSafe for WritableRegisterDto
impl Send for WritableRegisterDto
impl Sync for WritableRegisterDto
impl Unpin for WritableRegisterDto
impl UnsafeUnpin for WritableRegisterDto
impl UnwindSafe for WritableRegisterDto
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.