[−][src]Crate xiao_m0
Re-exports
pub extern crate atsamd_hal as hal; |
pub use hal::target_device as pac; |
Modules
calibration | NVM Software Calibration Area Mapping |
clock | Configuring the system clock sources.
You will typically need to create an instance of |
delay | Delays |
eic | |
gpio | GPIO |
pad | |
prelude | Import the prelude to gain convenient access to helper traits |
rtc | Real-time clock/counter |
sercom | Configure the SERCOM peripherals |
sleeping_delay | Delays with WFI sleep while we wait using a timer |
spi_common | |
time | Time units |
timer | Working with timer counter hardware |
timer_params | helper struct to calculate divider & cycles settings for timers. |
timer_traits |
Structs
Pins |
Enums
ResetCause | ResetCause represents the reason the MCU was reset. |
Functions
i2c_master | Convenience function for setting up the A4/D4/SDA and A5/D5/SCL pins as an
I2C master operating at |
reset_cause | Returns the cause of the last reset. |
serial_number | Returns the serial number of the chip as an array of bytes. The serial number is only guaranteed to be unique if all 16 bytes are used. |
spi_master | Convenience function for setting up the A8/D8/SCK, A10/D10/MOSI, and A9/D9/MISO pins as an SPI master in SPI mode 0. |
split_serial_number | Returns the serial number of the chip as 4 32-bit integers. The serial number is only guaranteed to be unique if all 128 bits are used. |
uart | Convenience function for setting up the TX (A6/D6) and RX (A7/D7) pins as a
UART operating at |
Attribute Macros
entry | Attribute to declare the entry point of the program |