Struct svd_parser::svd::device::Device[][src]

#[non_exhaustive]pub struct Device {
    pub name: String,
    pub version: Option<String>,
    pub description: Option<String>,
    pub address_unit_bits: Option<u32>,
    pub width: Option<u32>,
    pub cpu: Option<Cpu>,
    pub peripherals: Vec<Peripheral>,
    pub default_register_properties: RegisterProperties,
    // some fields omitted
}

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 device or device series. Device names are required to be unique

version: Option<String>

Define the version of the SVD file

description: Option<String>

Describe the main features of the device (for example CPU, clock frequency, peripheral overview)

address_unit_bits: Option<u32>

Define the number of data bits uniquely selected by each address

width: Option<u32>

Define the number of data bit-width of the maximum single data transfer supported by the bus infrastructure

cpu: Option<Cpu>

Describe the processor included in the device

peripherals: Vec<Peripheral>

Group to define peripherals

default_register_properties: RegisterProperties

Trait Implementations

impl Clone for Device[src]

impl Debug for Device[src]

impl Encode for Device[src]

type Error = Error

Encoding error

impl Parse for Device[src]

type Object = Self

Object returned by parse method

type Error = Error

Parsing error

impl PartialEq<Device> for Device[src]

impl StructuralPartialEq for Device[src]

Auto Trait Implementations

impl RefUnwindSafe for Device

impl Send for Device

impl Sync for Device

impl Unpin for Device

impl UnwindSafe for Device

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.