Crate feather_m4

Source
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§

Pins
BSP replacement for the HAL Pins type

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 the Miso alias
MisoMode
PinMode for the Miso alias
Mosi
Alias for a configured Pin
MosiId
PinId for the Mosi alias
MosiMode
PinMode for the Mosi alias
RedLed
Alias for a configured Pin
RedLedId
PinId for the RedLed alias
RedLedMode
PinMode for the RedLed alias
RedLedPwm
Alias for a configured Pin
RedLedPwmId
PinId for the RedLedPwm alias
RedLedPwmMode
PinMode for the RedLedPwm alias
Scl
Alias for a configured Pin
SclId
PinId for the Scl alias
SclMode
PinMode for the Scl alias
Sclk
Alias for a configured Pin
SclkId
PinId for the Sclk alias
SclkMode
PinMode for the Sclk alias
Sda
Alias for a configured Pin
SdaId
PinId for the Sda alias
SdaMode
PinMode for the Sda 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
UartPads
UART pads for the labelled RX & TX pins
UartRx
Alias for a configured Pin
UartRxId
PinId for the UartRx alias
UartRxMode
PinMode for the UartRx alias
UartSercom
Alias for the Sercom5 peripheral
UartTx
Alias for a configured Pin
UartTxId
PinId for the UartTx alias
UartTxMode
PinMode for the UartTx alias
UsbDm
Alias for a configured Pin
UsbDmId
PinId for the UsbDm alias
UsbDmMode
PinMode for the UsbDm alias
UsbDp
Alias for a configured Pin
UsbDpId
PinId for the UsbDp alias
UsbDpMode
PinMode for the UsbDp alias

Attribute Macros§

entry