Expand description
Board support crate for Adafruit’s Feather M4 Express, an ATSAMD51-based board in Feather form factor.
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§
- 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. - RED_
LED_ PWM_ ID - DynPinId
for the
RedLedPwmalias. - RED_
LED_ PWM_ MODE - DynPinMode
for the
RedLedPwmalias. - 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.
- spi_
master - Convenience for setting up the labelled SPI peripheral. This powers up SERCOM1 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§
- I2c
- I2C master for the labelled I2C peripheral
- I2cPads
- I2C pads for the labelled I2C peripheral
- I2cSercom
- Alias for the
Sercom2peripheral - 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- RedLed
Pwm - Alias for a configured
Pin - RedLed
PwmId PinIdfor theRedLedPwmalias- RedLed
PwmMode PinModefor theRedLedPwmalias- 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
Sercom1peripheral - Uart
- UART device for the labelled RX & TX pins
- Uart
Pads - UART pads for the labelled RX & TX pins
- UartRx
- Alias for a configured
Pin - Uart
RxId PinIdfor theUartRxalias- Uart
RxMode PinModefor theUartRxalias- Uart
Sercom - Alias for the
Sercom5peripheral - 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