Crate atsamd_hal

Source

Re-exports§

pub use embedded_hal_1 as ehal;
pub use embedded_hal_nb as ehal_nb;
pub use embedded_io;
pub use fugit;
pub use nb;
pub use paste;
pub use embedded_hal_async as ehal_async;
pub use embedded_io_async;
pub use atsamd21j as pac;

Modules§

adc
Analogue-to-Digital Conversion
async_hal
Asynchronous HAL APIs
calibration
NVM Software Calibration Area Mapping
clock
Configuring the system clock sources.
delay
Delays
dmac
Direct Memory Access Controller
eic
External Interrupt Controller
gpio
GPIO
interrupt
Primitives for manipulating interrupts
prelude
Import the prelude to gain convenient access to helper traits
pwm
rtc
Real-time clock/counter
sercom
Configure the SERCOM peripherals
sleeping_delay
Delays with WFI sleep while we wait using a timer
time
Time units
timer
Working with timer counter hardware
timer_params
helper struct to calculate divider & cycles settings for timers.
timer_traits
typelevel
Module supporting type-level programming
usb
USB Device support
watchdog

Macros§

bind_interrupts
Bind interrupt sources to a single handler each.
bind_multiple_interrupts
Bind multiple interrupt sources to the same interrupt handler.
bsp_peripherals
Helper macro to give meaningful names to peripherals
bsp_pins
Helper macro to give meaningful names to GPIO pins
dbgprint
with_num_channels

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.