Expand description
Board support crate for Adafruit’s Metro M4 Express, an ATSAMD51-based board in an ‘Arduino compatible’ shape and pinout
Re-exports§
pub use atsamd_hal as hal;pub use hal::ehal;pub use hal::pac;
Macros§
- periph_
alias - Refer to fields of the
Peripheralsstruct by alternate names - pin_
alias - Refer to fields of the
Pinsstruct by alternate names
Structs§
Constants§
- A6_ID
- DynPinId
for the
A6alias. - A6_MODE
- DynPinMode
for the
A6alias. - A7_ID
- DynPinId
for the
A7alias. - A7_MODE
- DynPinMode
for the
A7alias. - FLASH_
CS_ ID - DynPinId
for the
FlashCsalias. - FLASH_
CS_ MODE - DynPinMode
for the
FlashCsalias. - FLASH_
D0_ ID - DynPinId
for the
FlashD0alias. - FLASH_
D0_ MODE - DynPinMode
for the
FlashD0alias. - FLASH_
D1_ ID - DynPinId
for the
FlashD1alias. - FLASH_
D1_ MODE - DynPinMode
for the
FlashD1alias. - FLASH_
D2_ ID - DynPinId
for the
FlashD2alias. - FLASH_
D2_ MODE - DynPinMode
for the
FlashD2alias. - FLASH_
D3_ ID - DynPinId
for the
FlashD3alias. - FLASH_
D3_ MODE - DynPinMode
for the
FlashD3alias. - FLASH_
SCLK_ ID - DynPinId
for the
FlashSclkalias. - FLASH_
SCLK_ MODE - DynPinMode
for the
FlashSclkalias. - MISO_ID
- DynPinId
for the
Misoalias. - MISO_
MODE - DynPinMode
for the
Misoalias. - MOSI_ID
- DynPinId
for the
Mosialias. - MOSI_
MODE - DynPinMode
for the
Mosialias. - RED_
LED_ ID - DynPinId
for the
RedLedalias. - RED_
LED_ MODE - DynPinMode
for the
RedLedalias. - SCLK_ID
- DynPinId
for the
Sclkalias. - SCLK_
MODE - DynPinMode
for the
Sclkalias. - SCL_ID
- DynPinId
for the
Sclalias. - SCL_
MODE - DynPinMode
for the
Sclalias. - SDA_ID
- DynPinId
for the
Sdaalias. - SDA_
MODE - DynPinMode
for the
Sdaalias. - UART_
RX_ ID - DynPinId
for the
UartRxalias. - UART_
RX_ MODE - DynPinMode
for the
UartRxalias. - UART_
TX_ ID - DynPinId
for the
UartTxalias. - UART_
TX_ MODE - DynPinMode
for the
UartTxalias. - USB_
DM_ ID - DynPinId
for the
UsbDmalias. - USB_
DM_ MODE - DynPinMode
for the
UsbDmalias. - USB_
DP_ ID - DynPinId
for the
UsbDpalias. - USB_
DP_ MODE - DynPinMode
for the
UsbDpalias.
Functions§
- i2c_
master - Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.
- qspi_
master - Convenience for setting up the onboard QSPI flash. Enables the clocks for the QSPI peripheral in single data rate mode assuming 120MHz system clock, for 4MHz QSPI mode 0 operation.
- spi_
master - Convenience for setting up the 2x3 header block for SPI. This powers up SERCOM2 and configures it for use as an SPI Master in SPI Mode 0.
- uart
- Convenience for setting up the labelled RX, TX pins to operate as a UART device running at the specified baud.
Type Aliases§
- A6
- Alias for a configured
Pin - A7
- Alias for a configured
Pin - A6Id
PinIdfor theA6alias- A6Mode
PinModefor theA6alias- A7Id
PinIdfor theA7alias- A7Mode
PinModefor theA7alias- FlashCs
- Alias for a configured
Pin - Flash
CsId PinIdfor theFlashCsalias- Flash
CsMode PinModefor theFlashCsalias- FlashD0
- Alias for a configured
Pin - Flash
D0Id PinIdfor theFlashD0alias- Flash
D0Mode PinModefor theFlashD0alias- FlashD1
- Alias for a configured
Pin - FlashD2
- Alias for a configured
Pin - FlashD3
- Alias for a configured
Pin - Flash
D1Id PinIdfor theFlashD1alias- Flash
D1Mode PinModefor theFlashD1alias- Flash
D2Id PinIdfor theFlashD2alias- Flash
D2Mode PinModefor theFlashD2alias- Flash
D3Id PinIdfor theFlashD3alias- Flash
D3Mode PinModefor theFlashD3alias- Flash
Sclk - Alias for a configured
Pin - Flash
Sclk Id PinIdfor theFlashSclkalias- Flash
Sclk Mode PinModefor theFlashSclkalias- I2c
- I2C master for the labelled I2C peripheral
- I2cPads
- I2C pads for the labelled I2C peripheral
- I2cSercom
- Alias for the
Sercom5peripheral - Miso
- Alias for a configured
Pin - MisoId
PinIdfor theMisoalias- Miso
Mode PinModefor theMisoalias- Mosi
- Alias for a configured
Pin - MosiId
PinIdfor theMosialias- Mosi
Mode PinModefor theMosialias- RedLed
- Alias for a configured
Pin - RedLed
Id PinIdfor theRedLedalias- RedLed
Mode PinModefor theRedLedalias- Scl
- Alias for a configured
Pin - SclId
PinIdfor theSclalias- SclMode
PinModefor theSclalias- Sclk
- Alias for a configured
Pin - SclkId
PinIdfor theSclkalias- Sclk
Mode PinModefor theSclkalias- Sda
- Alias for a configured
Pin - SdaId
PinIdfor theSdaalias- SdaMode
PinModefor theSdaalias- Spi
- SPI master for the labelled SPI peripheral
- SpiPads
- SPI pads for the labelled SPI peripheral
- SpiSercom
- Alias for the
Sercom2peripheral - Uart
- UART device for the labelled RX & TX pins
- Uart
Pads - UART Pads for the labelled UART peripheral
- UartRx
- Alias for a configured
Pin - Uart
RxId PinIdfor theUartRxalias- Uart
RxMode PinModefor theUartRxalias- Uart
Sercom - Alias for the
Sercom3peripheral - UartTx
- Alias for a configured
Pin - Uart
TxId PinIdfor theUartTxalias- Uart
TxMode PinModefor theUartTxalias- UsbDm
- Alias for a configured
Pin - UsbDmId
PinIdfor theUsbDmalias- UsbDm
Mode PinModefor theUsbDmalias- UsbDp
- Alias for a configured
Pin - UsbDpId
PinIdfor theUsbDpalias- UsbDp
Mode PinModefor theUsbDpalias