[−][src]Struct svd_expander::RegisterSpec
Describes a register. Registers may be top-level constructs of a peripheral or may be nested within register clusters.
Fields
name: String
Name that identifies the register. Must be unique within the scope of its parent.
description: Option<String>
Description of the details of the register. May describe its purpose, operation, and effects on other parts of the device.
address_offset: u32
Register's starting address relative to its parent.
size: Option<u32>
The bit width of the register.
reset_value: Option<u32>
The value of the register after reset.
reset_mask: Option<u32>
The bits of the register that have a defined reset value.
access: Option<AccessSpec>
The access rights of the register.
fields: Vec<FieldSpec>
The fields that exist on the register.
default_field_write_constraint: Option<WriteConstraintSpec>
Default write constraints for fields on this register
default_field_modified_write_values: Option<ModifiedWriteValuesSpec>
Default modified write values for fields on this register
Implementations
impl RegisterSpec
[src]
pub fn derived_from_path(&self) -> Option<String>
[src]
The full path to the register that this register inherits from (if any).
pub fn path(&self) -> String
[src]
The full path to this register.
pub fn iter_enumerated_value_sets<'a>(
&'a self
) -> Box<dyn Iterator<Item = &EnumeratedValueSetSpec> + 'a>
[src]
&'a self
) -> Box<dyn Iterator<Item = &EnumeratedValueSetSpec> + 'a>
Iterates all the enumerated value sets on all the fields in this register.
Trait Implementations
impl Clone for RegisterSpec
[src]
fn clone(&self) -> RegisterSpec
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RegisterSpec
[src]
impl PartialEq<RegisterSpec> for RegisterSpec
[src]
fn eq(&self, other: &RegisterSpec) -> bool
[src]
fn ne(&self, other: &RegisterSpec) -> bool
[src]
impl StructuralPartialEq for RegisterSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for RegisterSpec
impl Send for RegisterSpec
impl Sync for RegisterSpec
impl Unpin for RegisterSpec
impl UnwindSafe for RegisterSpec
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,