[][src]Struct svd_expander::FieldSpec

pub struct FieldSpec {
    pub name: String,
    pub description: Option<String>,
    pub offset: u32,
    pub width: u32,
    pub access: Option<AccessSpec>,
    pub write_constraint: Option<WriteConstraintSpec>,
    pub modified_write_values: Option<ModifiedWriteValuesSpec>,
    pub enumerated_value_sets: Vec<EnumeratedValueSetSpec>,
    // some fields omitted
}

Describes a field on a register.

Fields

name: String

A name that identfies the field. Must be unique within the parent register.

description: Option<String>

Description of the field's usage, purpose, and/or operation.

offset: u32

The position of the least-significant bit of this field within its register.

width: u32

The bit width of the field.

access: Option<AccessSpec>

The access rights to the field.

write_constraint: Option<WriteConstraintSpec>

Constraints for writing values to the field.

modified_write_values: Option<ModifiedWriteValuesSpec>

Describes the manipulation of data written to this field. If None, the value written to the field is the value stored in the field.

enumerated_value_sets: Vec<EnumeratedValueSetSpec>

Implementations

impl FieldSpec[src]

pub fn derived_from_path(&self) -> Option<String>[src]

The full path to the field that this field inherits from (if any).

pub fn path(&self) -> String[src]

The full path to this field.

Trait Implementations

impl Clone for FieldSpec[src]

impl Debug for FieldSpec[src]

impl PartialEq<FieldSpec> for FieldSpec[src]

impl StructuralPartialEq for FieldSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.