[][src]Module atsamd_hal::common

Modules

adc
delay

Delays

gpio

Working with GPIO pins. The pins are associated with the PORT hardware. This module defines a split method on the PORT type that is used to safely reference the individual pin configuration. The IO pins can be switched into alternate function modes, which routes the pins to different peripherals depending on the mode for the pin. The pin configuration is reflected through the use of type states to make the interface (ideally, or at least practically) impossible to misuse.

pad
prelude

Import the prelude to gain convenient access to helper traits

pwm
sleeping_delay

Delays with WFI sleep while we wait using a timer

spi_common
time

Time units

timer_traits
watchdog

Enums

ResetCause

ResetCause represents the reason the MCU was reset.

Functions

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.

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.