Struct svd_parser::svd::peripheral::Peripheral[][src]

#[non_exhaustive]pub struct Peripheral {
    pub name: String,
    pub base_address: u64,
    pub version: Option<String>,
    pub display_name: Option<String>,
    pub group_name: Option<String>,
    pub description: Option<String>,
    pub address_block: Option<AddressBlock>,
    pub interrupt: Vec<Interrupt>,
    pub default_register_properties: RegisterProperties,
    pub registers: Option<Vec<RegisterCluster>>,
    pub derived_from: Option<String>,
}

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct {{ .. }} syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
name: String

The string identifies the peripheral. Peripheral names are required to be unique for a device

base_address: u64

Lowest address reserved or used by the peripheral

version: Option<String>

The string specifies the version of this peripheral description

display_name: Option<String>group_name: Option<String>description: Option<String>

The string provides an overview of the purpose and functionality of the peripheral

address_block: Option<AddressBlock>

Specify an address range uniquely mapped to this peripheral

interrupt: Vec<Interrupt>

A peripheral can have multiple associated interrupts

default_register_properties: RegisterPropertiesregisters: Option<Vec<RegisterCluster>>

Group to enclose register definitions. None indicates that the <registers> node is not present

derived_from: Option<String>

Specify the peripheral name from which to inherit data. Elements specified subsequently override inherited values

Trait Implementations

impl Clone for Peripheral[src]

impl Debug for Peripheral[src]

impl Encode for Peripheral[src]

type Error = Error

Encoding error

impl Parse for Peripheral[src]

type Object = Self

Object returned by parse method

type Error = Error

Parsing error

impl PartialEq<Peripheral> for Peripheral[src]

impl StructuralPartialEq for Peripheral[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> Pointable for T

type Init = T

The type for initializers.

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.