Crate metro_m0[][src]

Re-exports

pub use atsamd_hal as hal;
pub use embedded_hal as ehal;
pub use hal::pac;

Structs

BSP replacement for the HAL Pins type

Constants

DynPinId for the FlashCs alias.

DynPinMode for the FlashCs alias.

DynPinId for the FlashMiso alias.

DynPinMode for the FlashMiso alias.

DynPinId for the FlashMosi alias.

DynPinMode for the FlashMosi alias.

DynPinId for the FlashSclk alias.

DynPinMode for the FlashSclk alias.

DynPinId for the Miso alias.

DynPinMode for the Miso alias.

DynPinId for the Mosi alias.

DynPinMode for the Mosi alias.

DynPinId for the RedLed alias.

DynPinMode for the RedLed alias.

DynPinId for the Sclk alias.

DynPinMode for the Sclk 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 UsbDm alias.

DynPinMode for the UsbDm alias.

DynPinId for the UsbDp alias.

DynPinMode for the UsbDp alias.

Functions

Convenience for accessing the on-board SPI Flash device. This powers up SERCOM5 and configures it for use as an SPI Master.

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 2x3 header block for SPI. This powers up SERCOM4 and configures it for use as an SPI Master in SPI Mode 0. Unlike the flash_spi_master function, this one does not accept a CS pin; configuring a pin for CS is the responsibility of the caller, because it could be any OutputPin, or even a pulled up line on the slave.

Convenience for setting up the labelled RX, TX pins to operate as a UART device running at the specified baud.

Type Definitions

Alias for a configured Pin

Alias for a configured Pin

Alias for a configured Pin

SPI pads for the flash chip

Alias for a configured Pin

SPI master for the labelled SPI peripheral

I2C master for the labelled SDA & SCL pins

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

UART device for the labelled RX & TX pins

UART pads

Alias for a configured Pin

Alias for a configured Pin

Alias for a configured Pin

Alias for a configured Pin

Attribute Macros