#[non_exhaustive]
pub struct Device {
Show 17 fields pub vendor: Option<String>, pub vendor_id: Option<String>, pub name: String, pub series: Option<String>, pub version: String, pub description: String, pub license_text: Option<String>, pub cpu: Option<Cpu>, pub header_system_filename: Option<String>, pub header_definitions_prefix: Option<String>, pub address_unit_bits: u32, pub width: u32, pub default_register_properties: RegisterProperties, pub peripherals: Vec<Peripheral>, pub xmlns_xs: String, pub no_namespace_schema_location: String, pub schema_version: String,
}
Expand description

The top element in a SVD file. Describes information specific to a device.

Fields (Non-exhaustive)

This struct is marked as 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.
vendor: Option<String>

Specify the vendor of the device using the full name

vendor_id: Option<String>

Specify the vendor abbreviation without spaces or special characters

name: String

The string identifies the device or device series. Device names are required to be unique

series: Option<String>

Specify the name of the device series

version: String

Define the version of the SVD file

description: String

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

license_text: Option<String>

The text will be copied into the header section of the generated device header file and shall contain the legal disclaimer

cpu: Option<Cpu>

Describe the processor included in the device

header_system_filename: Option<String>

Specify the file name (without extension) of the device-specific system include file

header_definitions_prefix: Option<String>

This string is prepended to all type definition names generated in the CMSIS-Core device header file

address_unit_bits: u32

Define the number of data bits uniquely selected by each address

width: u32

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

default_register_properties: RegisterProperties

Default properties for all registers

peripherals: Vec<Peripheral>

Group to define peripherals

xmlns_xs: String

Specify the underlying XML schema to which the CMSIS-SVD schema is compliant.

no_namespace_schema_location: String

Specify the file path and file name of the CMSIS-SVD Schema

schema_version: String

Specify the compliant CMSIS-SVD schema version

Implementations

Make a builder for Device

Modify an existing Device based on a builder.

Validate the Device

Get peripheral by name

Get mutable peripheral by name

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Get name

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.