Module atsamd_hal::prelude[][src]

Expand description

Import the prelude to gain convenient access to helper traits

Re-exports

pub use crate::eic::pin::EicPin;
pub use crate::gpio::v1::GpioExt as _atsamd21_hal_gpio_GpioExt;
Deprecated
pub use crate::spi_common::CommonSpi as _atsamd_hal_spi_common_CommonSpi;
Deprecated
pub use crate::time::U32Ext as _atsamd21_hal_time_U32Ext;
pub use crate::timer_traits::InterruptDrivenTimer as _atsamd_hal_timer_traits_InterruptDrivenTimer;
pub use nb;

Traits

Single digital input pin

Single digital push-pull output pin

Output pin that can be toggled

Input capture

Pulse Width Modulation

A single PWM channel / pin

Quadrature encoder interface

ADCs that sample on single channels per request, and do so at the time of the request.

Millisecond delay

Microsecond delay

Blocking read

Blocking write

Blocking write + read

Blocking read

Write half of a serial interface (blocking variant)

Blocking transfer

Blocking write

Single digital input pin

Single digital push-pull output pin

Output pin that can be toggled

Read half of a serial interface

Write half of a serial interface

Full duplex (master mode)

A count down timer

Feeds an existing watchdog to ensure the processor isn’t reset. Sometimes commonly referred to as “kicking” or “refreshing”.

Disables a running watchdog timer so the processor won’t be reset.

Enables A watchdog timer to reset the processor if software is frozen or stalled.