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
Peripherals
struct by alternate names - pin_
alias - Refer to fields of the
Pins
struct by alternate names
Structs§
Constants§
- MISO_ID
- DynPinId
for the
Miso
alias. - MISO_
MODE - DynPinMode
for the
Miso
alias. - MOSI_ID
- DynPinId
for the
Mosi
alias. - MOSI_
MODE - DynPinMode
for the
Mosi
alias. - RED_
LED_ ID - DynPinId
for the
RedLed
alias. - RED_
LED_ MODE - DynPinMode
for the
RedLed
alias. - RED_
LED_ PWM_ ID - DynPinId
for the
RedLedPwm
alias. - RED_
LED_ PWM_ MODE - DynPinMode
for the
RedLedPwm
alias. - SCLK_ID
- DynPinId
for the
Sclk
alias. - SCLK_
MODE - DynPinMode
for the
Sclk
alias. - SCL_ID
- DynPinId
for the
Scl
alias. - SCL_
MODE - DynPinMode
for the
Scl
alias. - SDA_ID
- DynPinId
for the
Sda
alias. - SDA_
MODE - DynPinMode
for the
Sda
alias. - UART_
RX_ ID - DynPinId
for the
UartRx
alias. - UART_
RX_ MODE - DynPinMode
for the
UartRx
alias. - UART_
TX_ ID - DynPinId
for the
UartTx
alias. - UART_
TX_ MODE - DynPinMode
for the
UartTx
alias. - USB_
DM_ ID - DynPinId
for the
UsbDm
alias. - USB_
DM_ MODE - DynPinMode
for the
UsbDm
alias. - USB_
DP_ ID - DynPinId
for the
UsbDp
alias. - USB_
DP_ MODE - DynPinMode
for the
UsbDp
alias.
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
Sercom2
peripheral - Miso
- Alias for a configured
Pin
- MisoId
PinId
for theMiso
alias- Miso
Mode PinMode
for theMiso
alias- Mosi
- Alias for a configured
Pin
- MosiId
PinId
for theMosi
alias- Mosi
Mode PinMode
for theMosi
alias- RedLed
- Alias for a configured
Pin
- RedLed
Id PinId
for theRedLed
alias- RedLed
Mode PinMode
for theRedLed
alias- RedLed
Pwm - Alias for a configured
Pin
- RedLed
PwmId PinId
for theRedLedPwm
alias- RedLed
PwmMode PinMode
for theRedLedPwm
alias- Scl
- Alias for a configured
Pin
- SclId
PinId
for theScl
alias- SclMode
PinMode
for theScl
alias- Sclk
- Alias for a configured
Pin
- SclkId
PinId
for theSclk
alias- Sclk
Mode PinMode
for theSclk
alias- Sda
- Alias for a configured
Pin
- SdaId
PinId
for theSda
alias- SdaMode
PinMode
for theSda
alias- Spi
- SPI master for the labelled SPI peripheral
- SpiPads
- SPI pads for the labelled SPI peripheral
- SpiSercom
- Alias for the
Sercom1
peripheral - 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 PinId
for theUartRx
alias- Uart
RxMode PinMode
for theUartRx
alias- Uart
Sercom - Alias for the
Sercom5
peripheral - UartTx
- Alias for a configured
Pin
- Uart
TxId PinId
for theUartTx
alias- Uart
TxMode PinMode
for theUartTx
alias- UsbDm
- Alias for a configured
Pin
- UsbDmId
PinId
for theUsbDm
alias- UsbDm
Mode PinMode
for theUsbDm
alias- UsbDp
- Alias for a configured
Pin
- UsbDpId
PinId
for theUsbDp
alias- UsbDp
Mode PinMode
for theUsbDp
alias