Re-exports§
pub use atsamd_hal as hal;pub use hal::ehal;pub use hal::pac;
Macros§
Structs§
Constants§
- A0_ID
- DynPinId
for the
A0alias. - A0_MODE
- DynPinMode
for the
A0alias. - D5_
PWM_ ID - DynPinId
for the
D5Pwmalias. - D5_
PWM_ MODE - DynPinMode
for the
D5Pwmalias. - DOT_
STAR_ CLK_ ID - DynPinId
for the
DotStarClkalias. - DOT_
STAR_ CLK_ MODE - DynPinMode
for the
DotStarClkalias. - DOT_
STAR_ DATA_ ID - DynPinId
for the
DotStarDataalias. - DOT_
STAR_ DATA_ MODE - DynPinMode
for the
DotStarDataalias. - DOT_
STAR_ N_ C_ ID - DynPinId
for the
DotStarNCalias. - DOT_
STAR_ N_ C_ MODE - DynPinMode
for the
DotStarNCalias. - 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§
- dotstar_
bitbang - Convenience for setting up the dotstar LED using bitbang’ed SPI.
- 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 the SPI SERCOM 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§
- A0
- Alias for a configured
Pin - A0Id
PinIdfor theA0alias- A0Mode
PinModefor theA0alias- D5Pwm
- Alias for a configured
Pin - D5PwmId
PinIdfor theD5Pwmalias- D5Pwm
Mode PinModefor theD5Pwmalias- DotStar
Clk - Alias for a configured
Pin - DotStar
ClkId PinIdfor theDotStarClkalias- DotStar
ClkMode PinModefor theDotStarClkalias- DotStar
Data - Alias for a configured
Pin - DotStar
Data Id PinIdfor theDotStarDataalias- DotStar
Data Mode PinModefor theDotStarDataalias- DotStarNC
- Alias for a configured
Pin - DotStarNC
Id PinIdfor theDotStarNCalias- DotStarNC
Mode PinModefor theDotStarNCalias- I2c
- I2C master for the labelled I2C peripheral
- I2cPads
- I2C pads for the labelled I2C peripheral
- I2cSercom
- 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
- 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 - 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