Crate p1am_100

Crate p1am_100 

Source

Re-exports§

pub use atsamd_hal as hal;
pub use hal::pac;
pub use pins::*;

Modules§

delay
Delays
gpio
GPIO
pad
pins
Definitions related to pins and pin aliases
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_commonDeprecated
thumbv6m
time
Time units
timer_params
helper struct to calculate divider & cycles settings for timers.
timer_traits

Macros§

pin_alias
Refer to fields of the Pins struct by alternate names

Enums§

ResetCause
ResetCause represents the reason the MCU was reset.

Functions§

base_controller_spi
Convenience for setting up the labeled SPI0 peripheral. SPI0 has the P1AM base controller connected. This powers up SERCOM1 and configures it for talking to the base controller.
i2c_master
Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.
reset_cause
Returns the cause of the last reset.
sdmmc_spi
Convenience for setting up the labeled SPI2 peripheral. SPI2 has the microSD card slot connected. This powers up SERCOM2 and configures it for talking to the base controller.
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.
uart
Convenience for setting up the labelled RX, TX pins to operate as a UART device running at the specified baud.

Type Aliases§

I2C
SdSpi
The spi::Spi type for the SD card labeled SPI2.
Spi0
The spi::Spi type for the SPI labeled SPI0.
Uart

Attribute Macros§

entry