Struct itsybitsy_m4::Pins [−][src]
pub struct Pins {Show 34 fields
pub a0: Pin<PA02, Reset>,
pub a1: Pin<PA05, Reset>,
pub a2: Pin<PB08, Reset>,
pub a3: Pin<PB09, Reset>,
pub a4: Pin<PA04, Reset>,
pub a5: Pin<PA06, Reset>,
pub d0_rx: Pin<PA16, Reset>,
pub d1_tx: Pin<PA17, Reset>,
pub d2: Pin<PA07, Reset>,
pub d3: Pin<PB22, Reset>,
pub d4: Pin<PA14, Reset>,
pub d5: Pin<PA15, Reset>,
pub d7: Pin<PA18, Reset>,
pub d9: Pin<PA19, Reset>,
pub d10: Pin<PA20, Reset>,
pub d11: Pin<PA21, Reset>,
pub d12: Pin<PA23, Reset>,
pub d13: Pin<PA22, Reset>,
pub mosi: Pin<PA00, Reset>,
pub sck: Pin<PA01, Reset>,
pub miso: Pin<PB23, Reset>,
pub dotstar_sck: Pin<PB02, Reset>,
pub dotstar_mosi: Pin<PB03, Reset>,
pub dotstar_miso: Pin<PA27, Reset>,
pub sda: Pin<PA12, Reset>,
pub scl: Pin<PA13, Reset>,
pub usb_dm: Pin<PA24, Reset>,
pub usb_dp: Pin<PA25, Reset>,
pub qspi_sck: Pin<PB10, Reset>,
pub qspi_cs: Pin<PB11, Reset>,
pub qspi_d0: Pin<PA08, Reset>,
pub qspi_d1: Pin<PA09, Reset>,
pub qspi_d2: Pin<PA10, Reset>,
pub qspi_d3: Pin<PA11, 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
a0: Pin<PA02, Reset>
Analog pin 0. Can act as a true analog output
as it has a DAC (which is not currently supported
by this hal) as well as input.
This field can also be accessed using the pin_alias!
macro with the following alternate names:
analog0,
a1: Pin<PA05, Reset>
Analog pin 1. Can act as a true analog output
as it has a DAC (which is not currently supported
by this hal) as well as input.
This field can also be accessed using the pin_alias!
macro with the following alternate names:
analog1,
a2: Pin<PB08, Reset>
Analog pin 2
This field can also be accessed using the pin_alias!
macro with the following alternate names:
analog2,
a3: Pin<PB09, Reset>
Analog pin 3
This field can also be accessed using the pin_alias!
macro with the following alternate names:
analog3,
a4: Pin<PA04, Reset>
Analog pin 4, PWM capable
This field can also be accessed using the pin_alias!
macro with the following alternate names:
analog4,
a5: Pin<PA06, Reset>
Analog pin 5, PWM capable
This field can also be accessed using the pin_alias!
macro with the following alternate names:
analog5,
d0_rx: Pin<PA16, Reset>
Pin 0, labeled as RX.
Can be used as SERCOM3 UART RX.
PWM capable
This field can also be accessed using the pin_alias!
macro with the following alternate names:
uart_rx,
d1_tx: Pin<PA17, Reset>
Pin 0, labeled as TX.
Can be used as SERCOM3 UART TX.
PWM capable
This field can also be accessed using the pin_alias!
macro with the following alternate names:
uart_tx,
d2: Pin<PA07, Reset>
pin 2, PWM capable
d3: Pin<PB22, Reset>
pin 3 Can act as MISO/CS for Sercom1
This field can also be accessed using the pin_alias!
macro with the following alternate names:
undoc_ioset2_pad2,
d4: Pin<PA14, Reset>
pin 4, PWM capable
d5: Pin<PA15, Reset>
pin 5. Output-only with rail-to-rail HI level. PWM capable.
d7: Pin<PA18, Reset>
pin 7, PWM capable
d9: Pin<PA19, Reset>
pin 9, PWM capable
d10: Pin<PA20, Reset>
pin 10, PWM capable
d11: Pin<PA21, Reset>
pin 11, PWM capable
d12: Pin<PA23, Reset>
pin 12, PWM capable
d13: Pin<PA22, Reset>
pin 13, connected to builtin red led, PWM capable
This field can also be accessed using the pin_alias!
macro with the following alternate names:
builtin_led,
mosi: Pin<PA00, Reset>
The SPI MOSI - Sercom1, PWM capable
This field can also be accessed using the pin_alias!
macro with the following alternate names:
mosi,
sck: Pin<PA01, Reset>
The SPI SCK - Sercom1, PWM capable
This field can also be accessed using the pin_alias!
macro with the following alternate names:
sck,
miso: Pin<PB23, Reset>
The SPI MISO - Sercom1, PWM capable
This field can also be accessed using the pin_alias!
macro with the following alternate names:
miso,
dotstar_sck: Pin<PB02, Reset>
SPI SCK line for the Apa102 led
This field can also be accessed using the pin_alias!
macro with the following alternate names:
dot_star_clk,
dotstar_mosi: Pin<PB03, Reset>
SPI MOSI line for the Apa102 led
This field can also be accessed using the pin_alias!
macro with the following alternate names:
dot_star_data,
dotstar_miso: Pin<PA27, Reset>
Not connected, used as the SPI MISO line for the Apa102 builtin led
This field can also be accessed using the pin_alias!
macro with the following alternate names:
dot_star_n_c,
sda: Pin<PA12, Reset>
The I2C SDA pin - Sercom2
This field can also be accessed using the pin_alias!
macro with the following alternate names:
sda,
scl: Pin<PA13, Reset>
The I2C SCL pin - Sercom2
This field can also be accessed using the pin_alias!
macro with the following alternate names:
scl,
usb_dm: Pin<PA24, Reset>
USB D- pin
This field can also be accessed using the pin_alias!
macro with the following alternate names:
usb_dm,
usb_dp: Pin<PA25, Reset>
USB D+ pin
This field can also be accessed using the pin_alias!
macro with the following alternate names:
usb_dp,
qspi_sck: Pin<PB10, Reset>
QSPI FLASH SCK pin
This field can also be accessed using the pin_alias!
macro with the following alternate names:
qspi_sck,
qspi_cs: Pin<PB11, Reset>
QSPI FLASH CS pin
This field can also be accessed using the pin_alias!
macro with the following alternate names:
qspi_cs,
qspi_d0: Pin<PA08, Reset>
QSPI FLASH DATA0 pin
This field can also be accessed using the pin_alias!
macro with the following alternate names:
qspi_d0,
qspi_d1: Pin<PA09, Reset>
QSPI FLASH DATA1 pin
This field can also be accessed using the pin_alias!
macro with the following alternate names:
qspi_d1,
qspi_d2: Pin<PA10, Reset>
QSPI FLASH DATA2 pin
This field can also be accessed using the pin_alias!
macro with the following alternate names:
qspi_d2,
qspi_d3: Pin<PA11, Reset>
QSPI FLASH DATA2 pin
This field can also be accessed using the pin_alias!
macro with the following alternate names:
qspi_d3,