Struct samd11_bare::Pins[][src]

pub struct Pins {
    pub d1: Pin<PA05, Reset>,
    pub d2: Pin<PA08, Reset>,
    pub d3: Pin<PA09, Reset>,
    pub d4: Pin<PA14, Reset>,
    pub d5: Pin<PA15, Reset>,
    pub d6: Pin<PA28, Reset>,
    pub d7: Pin<PA30, Reset>,
    pub d8: Pin<PA31, Reset>,
    pub d9: Pin<PA24, Reset>,
    pub d10: Pin<PA25, Reset>,
    pub d13: Pin<PA02, Reset>,
    pub d14: Pin<PA04, Reset>,
    // some fields omitted
}
Expand description

BSP replacement for the HAL Pins type

This type is intended to provide more meaningful names for the given pins.

Fields

d1: Pin<PA05, Reset>

This field can also be accessed using the pin_alias! macro with the following alternate names: uart_rx,

d2: Pin<PA08, Reset>

This field can also be accessed using the pin_alias! macro with the following alternate names: led,

d3: Pin<PA09, Reset>d4: Pin<PA14, Reset>

This field can also be accessed using the pin_alias! macro with the following alternate names: sda,

d5: Pin<PA15, Reset>

This field can also be accessed using the pin_alias! macro with the following alternate names: scl,

d6: Pin<PA28, Reset>

RST pin

d7: Pin<PA30, Reset>d8: Pin<PA31, Reset>d9: Pin<PA24, Reset>d10: Pin<PA25, Reset>d13: Pin<PA02, Reset>d14: Pin<PA04, Reset>

This field can also be accessed using the pin_alias! macro with the following alternate names: uart_tx,

Implementations

Take ownership of the PAC [PORT] and split it into discrete [Pin]s.

This struct serves as a replacement for the HAL Pins struct. It is intended to provide more meaningful names for each [Pin] in a BSP. Any [Pin] not defined by the BSP is dropped.

PORT Pin Pins

Take the PAC [PORT]

The [PORT] can only be taken once. Subsequent calls to this function will panic.

Safety

Direct access to the [PORT] could allow you to invalidate the compiler’s type-level tracking, so it is unsafe.

PORT

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

Performs the conversion.

Performs the conversion.

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.