Re-exports§
pub use atsamd_hal as hal;pub use hal::ehal;pub use hal::pac;
Modules§
- i2c
- Use the SERCOM peripheral for I2C communications
- spi
- Use a SERCOM peripheral for SPI transactions
- uart
- Use the SERCOM peripheral for UART communications
Macros§
- dbgprint
- periph_
alias - Refer to fields of the
Peripheralsstruct by alternate names - pin_
alias - Refer to fields of the
Pinsstruct by alternate names
Structs§
- Generic
Clock Controller GenericClockControllerencapsulates the Gclk hardware.- OneShot
- Qspi used for read/write of fixed-size octet buffers
- Pins
- BSP replacement for the HAL
Pinstype - Qspi
Enums§
- Baud
Mode - Baudrate calculation in asynchronous mode
- IoSet1
- Type-level variant of
IoSetrepresenting SERCOM IOSET 1 - IoSet3
- Type-level variant of
IoSetrepresenting SERCOM IOSET 3 - Oversampling
- Baudrate oversampling values
- Undoc
IoSet2 - Type-level variant of
IoSetrepresenting an undocumented SERCOM IOSET
Constants§
- ANALO
G0_ ID - DynPinId
for the
Analog0alias. - ANALO
G0_ MODE - DynPinMode
for the
Analog0alias. - ANALO
G1_ ID - DynPinId
for the
Analog1alias. - ANALO
G1_ MODE - DynPinMode
for the
Analog1alias. - ANALO
G2_ ID - DynPinId
for the
Analog2alias. - ANALO
G2_ MODE - DynPinMode
for the
Analog2alias. - ANALO
G3_ ID - DynPinId
for the
Analog3alias. - ANALO
G3_ MODE - DynPinMode
for the
Analog3alias. - ANALO
G4_ ID - DynPinId
for the
Analog4alias. - ANALO
G4_ MODE - DynPinMode
for the
Analog4alias. - ANALO
G5_ ID - DynPinId
for the
Analog5alias. - ANALO
G5_ MODE - DynPinMode
for the
Analog5alias. - BUILTIN_
LED_ ID - DynPinId
for the
BuiltinLedalias. - BUILTIN_
LED_ MODE - DynPinMode
for the
BuiltinLedalias. - 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. - IO_
SET3_ SERCO M0_ PAD0_ ID - DynPinId
for the
IoSet3Sercom0Pad0alias. - IO_
SET3_ SERCO M0_ PAD0_ MODE - DynPinMode
for the
IoSet3Sercom0Pad0alias. - IO_
SET3_ SERCO M0_ PAD2_ ID - DynPinId
for the
IoSet3Sercom0Pad2alias. - IO_
SET3_ SERCO M0_ PAD2_ MODE - DynPinMode
for the
IoSet3Sercom0Pad2alias. - MISO_ID
- DynPinId
for the
Misoalias. - MISO_
MODE - DynPinMode
for the
Misoalias. - MOSI_ID
- DynPinId
for the
Mosialias. - MOSI_
MODE - DynPinMode
for the
Mosialias. - QSPI_
CS_ ID - DynPinId
for the
QspiCsalias. - QSPI_
CS_ MODE - DynPinMode
for the
QspiCsalias. - QSPI_
D0_ ID - DynPinId
for the
QspiD0alias. - QSPI_
D0_ MODE - DynPinMode
for the
QspiD0alias. - QSPI_
D1_ ID - DynPinId
for the
QspiD1alias. - QSPI_
D1_ MODE - DynPinMode
for the
QspiD1alias. - QSPI_
D2_ ID - DynPinId
for the
QspiD2alias. - QSPI_
D2_ MODE - DynPinMode
for the
QspiD2alias. - QSPI_
D3_ ID - DynPinId
for the
QspiD3alias. - QSPI_
D3_ MODE - DynPinMode
for the
QspiD3alias. - QSPI_
SCK_ ID - DynPinId
for the
QspiSckalias. - QSPI_
SCK_ MODE - DynPinMode
for the
QspiSckalias. - SCK_ID
- DynPinId
for the
Sckalias. - SCK_
MODE - DynPinMode
for the
Sckalias. - 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. - UNDOC_
IOSE T2_ PAD2_ ID - DynPinId
for the
UndocIoset2Pad2alias. - UNDOC_
IOSE T2_ PAD2_ MODE - DynPinMode
for the
UndocIoset2Pad2alias. - 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.
- 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 default SPI. 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§
- Analog0
- Alias for a configured
Pin - Analog0
Id PinIdfor theAnalog0alias- Analog0
Mode PinModefor theAnalog0alias- Analog1
- Alias for a configured
Pin - Analog2
- Alias for a configured
Pin - Analog3
- Alias for a configured
Pin - Analog4
- Alias for a configured
Pin - Analog5
- Alias for a configured
Pin - Analog1
Id PinIdfor theAnalog1alias- Analog1
Mode PinModefor theAnalog1alias- Analog2
Id PinIdfor theAnalog2alias- Analog2
Mode PinModefor theAnalog2alias- Analog3
Id PinIdfor theAnalog3alias- Analog3
Mode PinModefor theAnalog3alias- Analog4
Id PinIdfor theAnalog4alias- Analog4
Mode PinModefor theAnalog4alias- Analog5
Id PinIdfor theAnalog5alias- Analog5
Mode PinModefor theAnalog5alias- Builtin
Led - Alias for a configured
Pin - Builtin
LedId PinIdfor theBuiltinLedalias- Builtin
LedMode PinModefor theBuiltinLedalias- 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- Hertz
- Hertz
- I2c
- I2C master for the labelled I2C peripheral
- I2cPads
- I2C pads for the labelled I2C peripheral
- I2cSercom
- Alias for the
Sercom2peripheral - IoSet3
Sercom0 Pad0 - Alias for a configured
Pin - IoSet3
Sercom0 Pad0 Id PinIdfor theIoSet3Sercom0Pad0alias- IoSet3
Sercom0 Pad0 Mode PinModefor theIoSet3Sercom0Pad0alias- IoSet3
Sercom0 Pad2 - Alias for a configured
Pin - IoSet3
Sercom0 Pad2 Id PinIdfor theIoSet3Sercom0Pad2alias- IoSet3
Sercom0 Pad2 Mode PinModefor theIoSet3Sercom0Pad2alias- 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- QspiCs
- Alias for a configured
Pin - Qspi
CsId PinIdfor theQspiCsalias- Qspi
CsMode PinModefor theQspiCsalias- QspiD0
- Alias for a configured
Pin - Qspi
D0Id PinIdfor theQspiD0alias- Qspi
D0Mode PinModefor theQspiD0alias- QspiD1
- Alias for a configured
Pin - QspiD2
- Alias for a configured
Pin - QspiD3
- Alias for a configured
Pin - Qspi
D1Id PinIdfor theQspiD1alias- Qspi
D1Mode PinModefor theQspiD1alias- Qspi
D2Id PinIdfor theQspiD2alias- Qspi
D2Mode PinModefor theQspiD2alias- Qspi
D3Id PinIdfor theQspiD3alias- Qspi
D3Mode PinModefor theQspiD3alias- QspiSck
- Alias for a configured
Pin - Qspi
SckId PinIdfor theQspiSckalias- Qspi
SckMode PinModefor theQspiSckalias- Sck
- Alias for a configured
Pin - SckId
PinIdfor theSckalias- SckMode
PinModefor theSckalias- Scl
- Alias for a configured
Pin - SclId
PinIdfor theSclalias- SclMode
PinModefor theSclalias- 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 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- Undoc
Ioset2 Pad2 - Alias for a configured
Pin - Undoc
Ioset2 Pad2 Id PinIdfor theUndocIoset2Pad2alias- Undoc
Ioset2 Pad2 Mode PinModefor theUndocIoset2Pad2alias- 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