Struct avr_mcu::Peripheral [] [src]

pub struct Peripheral {
    pub name: String,
    pub instances: Vec<Instance>,
}

An on-board peripheral, such as an IO port.

Fields

The name of the peripheral, for example, PORT.

A list of instances where the peripheral is used.

As an example, if the peripheral is an IO port, then the instance list would list all PORT instances, such as PORTA and PORTB.

Methods

impl Peripheral
[src]

[src]

Gets an instance by name.

[src]

Gets an iterator over all signals that the peripheral uses.

[src]

Trait Implementations

impl Clone for Peripheral
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Peripheral
[src]

[src]

Formats the value using the given formatter.

impl PartialOrd for Peripheral
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq for Peripheral
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Peripheral
[src]

impl Hash for Peripheral
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more