Crate itsybitsy_m4
source ·Re-exports§
pub use atsamd_hal as hal;
pub use hal::ehal;
pub use hal::pac;
Modules§
- Use the SERCOM peripheral for I2C communications
- Use a SERCOM peripheral for SPI transactions
- Use the SERCOM peripheral for UART communications
Macros§
- Refer to fields of the
Peripherals
struct by alternate names - Refer to fields of the
Pins
struct by alternate names
Structs§
GenericClockController
encapsulates the GCLK hardware. It provides a type safe way to configure the system clocks. Initializing theGenericClockController
instance configures the system to run at 120MHz by taking the DFLL48 and feeding it into the DPLL0 hardware which multiplies the signal by 2.5x.- Hertz
- Qspi used for read/write of fixed-size octet buffers
- BSP replacement for the HAL
Pins
type
Enums§
- Baudrate calculation in asynchronous mode
- Type-level variant of
IoSet
representing SERCOM IOSET 1 - Type-level variant of
IoSet
representing SERCOM IOSET 3 - Baudrate oversampling values
- Type-level variant of
IoSet
representing an undocumented SERCOM IOSET
Constants§
- DynPinId for the
Analog0
alias. - DynPinMode for the
Analog0
alias. - DynPinId for the
Analog1
alias. - DynPinMode for the
Analog1
alias. - DynPinId for the
Analog2
alias. - DynPinMode for the
Analog2
alias. - DynPinId for the
Analog3
alias. - DynPinMode for the
Analog3
alias. - DynPinId for the
Analog4
alias. - DynPinMode for the
Analog4
alias. - DynPinId for the
Analog5
alias. - DynPinMode for the
Analog5
alias. - DynPinId for the
BuiltinLed
alias. - DynPinMode for the
BuiltinLed
alias. - DynPinId for the
DotStarClk
alias. - DynPinMode for the
DotStarClk
alias. - DynPinId for the
DotStarData
alias. - DynPinMode for the
DotStarData
alias. - DynPinId for the
DotStarNC
alias. - DynPinMode for the
DotStarNC
alias. - DynPinId for the
IoSet3Sercom0Pad0
alias. - DynPinMode for the
IoSet3Sercom0Pad0
alias. - DynPinId for the
IoSet3Sercom0Pad2
alias. - DynPinMode for the
IoSet3Sercom0Pad2
alias. - DynPinId for the
Miso
alias. - DynPinMode for the
Miso
alias. - DynPinId for the
Mosi
alias. - DynPinMode for the
Mosi
alias. - DynPinId for the
QspiCs
alias. - DynPinMode for the
QspiCs
alias. - DynPinId for the
QspiD0
alias. - DynPinMode for the
QspiD0
alias. - DynPinId for the
QspiD1
alias. - DynPinMode for the
QspiD1
alias. - DynPinId for the
QspiD2
alias. - DynPinMode for the
QspiD2
alias. - DynPinId for the
QspiD3
alias. - DynPinMode for the
QspiD3
alias. - DynPinId for the
QspiSck
alias. - DynPinMode for the
QspiSck
alias. - DynPinId for the
Sck
alias. - DynPinMode for the
Sck
alias. - DynPinId for the
Scl
alias. - DynPinMode for the
Scl
alias. - DynPinId for the
Sda
alias. - DynPinMode for the
Sda
alias. - DynPinId for the
UartRx
alias. - DynPinMode for the
UartRx
alias. - DynPinId for the
UartTx
alias. - DynPinMode for the
UartTx
alias. - DynPinId for the
UndocIoset2Pad2
alias. - DynPinMode for the
UndocIoset2Pad2
alias. - DynPinId for the
UsbDm
alias. - DynPinMode for the
UsbDm
alias. - DynPinId for the
UsbDp
alias. - DynPinMode for the
UsbDp
alias.
Traits§
- Marker trait that indicates that a timer is periodic
Functions§
- Convenience for setting up the dotstar LED using bitbang’ed SPI.
- Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.
- 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.
- Convenience for setting up the default SPI. This powers up SERCOM1 and configures it for use as an SPI Master in SPI Mode 0.
- Convenience for setting up the labelled RX, TX pins to operate as a UART device running at the specified baud.
Type Aliases§
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
PinId
for theBuiltinLed
aliasPinMode
for theBuiltinLed
alias- Alias for a configured
Pin
PinId
for theDotStarClk
aliasPinMode
for theDotStarClk
alias- Alias for a configured
Pin
PinId
for theDotStarData
aliasPinMode
for theDotStarData
alias- Alias for a configured
Pin
- I2C master for the labelled I2C peripheral
- I2C pads for the labelled I2C peripheral
- Alias for the
SERCOM2
peripheral - Alias for a configured
Pin
PinId
for theIoSet3Sercom0Pad0
aliasPinMode
for theIoSet3Sercom0Pad0
alias- Alias for a configured
Pin
PinId
for theIoSet3Sercom0Pad2
aliasPinMode
for theIoSet3Sercom0Pad2
alias- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- Alias for a configured
Pin
- SPI master for the labelled SPI peripheral
- SPI pads for the labelled SPI peripheral
- Alias for the
SERCOM1
peripheral - UART device for the labelled RX & TX pins
- UART Pads for the labelled UART peripheral
- Alias for a configured
Pin
- Alias for the
SERCOM3
peripheral - Alias for a configured
Pin
- Alias for a configured
Pin
PinId
for theUndocIoset2Pad2
aliasPinMode
for theUndocIoset2Pad2
alias- Alias for a configured
Pin
- Alias for a configured
Pin