Expand description
See the examples folder for more usage examples
This Hardware Abstraction Layer (HAL) provides the following functionality:
Setup and Configuration
Digital IO
Analog IO
Digital Busses
- Inter Integrated Circuit (I2C)
- Serial Peripheral Interface (SPI)
- Serial Data (USART/UART)
- Serial Audio Interface
- Quad or Octo SPI Feature gate
xspi - Ethernet Feature gate
ethernet - USB HS Feature gate
usb_hs - LCD-TFT Display Controller Feature gate
ltdc - MIPI DSI (STM32H747/757 only) Feature gate
dsi - CAN and CAN-FD Feature gate
can
External Memory
- Flexible Memory Controller (FMC) Feature gate
fmc - SD Card (SDMMC) Feature gate
sdmmc(FAT16/32 driver is available under thesdmmc-fatfsfeature gate)
Timing functions
- Pulse Width Modulation (PWM)
- Quadrature Encoder Interface
- Real-Time Clock Feature gate
rtc - Timers
- Delays
Others
- Direct Memory Access (DMA)
- Cyclic Redundancy Check (CRC) Feature gate
crc - Random Number Generator (rand_core::RngCore is implemented under the
randfeature gate) - Embedded Flash Memory
- System Window Watchdog
- Independent Watchdog
Cargo Features
defmtformatting for some types can be enabled with the featuredefmt.
Re-exports§
pub use embedded_hal as hal;pub use nb;
Modules§
- adc
device-selected - Analog to Digital Converter (ADC)
- can
can - CAN and FD-CAN
- crc
crc - Cyclic Redundancy Check (CRC)
- dac
device-selected - Digital to Analog Converter (DAC)
- delay
device-selected - Delay providers
- device
device-selected - Peripheral access API for STM32H743 microcontrollers (generated using svd2rust v0.24.1 ( ))
- dma
device-selected - Direct Memory Access
- ethernet
ethernet - This module implements a smoltcp device interface
phy::Devicefor the STM32H7 series of microcontrollers. - exti
device-selected - External interrupt controller
- flash
device-selected - Embedded Flash memory
- fmc
fmc - Flexible Memory Controller
- gpio
device-selected - General Purpose Input / Output
- i2c
device-selected - Inter Integrated Circuit (I2C)
- independent_
watchdog device-selected - Independent Watchdog
- ltdc
ltdc - LCD-TFT Display Controller
- pac
device-selected - Peripheral access API for STM32H743 microcontrollers (generated using svd2rust v0.24.1 ( ))
- prelude
device-selected - Prelude
- pwm
device-selected - Pulse Width Modulation (PWM)
- pwr
device-selected - Power configuration
- qei
device-selected - Quadrature Encoder Interface
- rcc
device-selected - Reset and Clock Control
- rng
device-selected - Random Number Generator
- rtc
rtc - Real-Time Clock
- sai
device-selected - Serial Audio Interface
- sdmmc
sdmmc - SD MultiMediaCard interface (SDMMC)
- serial
device-selected - Serial
- signature
device-selected - Device electronic signature
- spi
device-selected - Serial Peripheral Interface (SPI)
- stm32
stm32h742vorstm32h743vorstm32h750v - Peripheral access API for STM32H743 microcontrollers (generated using svd2rust v0.24.1 ( ))
- system_
watchdog device-selected - System Window Watchdog
- time
device-selected - Time units
- timer
device-selected - Timers
- traits
- usb_hs
usb_hs - USB OTG peripherals
- xspi
xspi - Quad or Octo SPI bus
Macros§
- block
- Turns the non-blocking expression
$einto a blocking operation.
Enums§
- interrupt
rt - Enumeration of all the interrupts.