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-fatfs
feature 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
rand
feature gate) - Embedded Flash Memory
- System Window Watchdog
- Independent Watchdog
Cargo Features
defmt
formatting for some types can be enabled with the featuredefmt
.
Re-exports§
pub use embedded_hal as hal;
pub use nb;
Modules§
- adc
- Analog to Digital Converter (ADC)
- can
can
- CAN and FD-CAN
- crc
crc
- Cyclic Redundancy Check (CRC)
- dac
- Digital to Analog Converter (DAC)
- delay
- Delay providers
- device
- Peripheral access API for STM32H743 microcontrollers (generated using svd2rust v0.24.1 ( ))
- dma
- Direct Memory Access
- ethernet
ethernet
- This module implements a smoltcp device interface
phy::Device
for the STM32H7 series of microcontrollers. - exti
- External interrupt controller
- flash
- Embedded Flash memory
- fmc
fmc
- Flexible Memory Controller
- gpio
- General Purpose Input / Output
- i2c
- Inter Integrated Circuit (I2C)
- independent_
watchdog - Independent Watchdog
- ltdc
ltdc
- LCD-TFT Display Controller
- pac
- Peripheral access API for STM32H743 microcontrollers (generated using svd2rust v0.24.1 ( ))
- prelude
- Prelude
- pwm
- Pulse Width Modulation (PWM)
- pwr
- Power configuration
- qei
- Quadrature Encoder Interface
- rcc
- Reset and Clock Control
- rng
- Random Number Generator
- rtc
rtc
- Real-Time Clock
- sai
- Serial Audio Interface
- sdmmc
sdmmc
- SD MultiMediaCard interface (SDMMC)
- serial
- Serial
- signature
- Device electronic signature
- spi
- Serial Peripheral Interface (SPI)
- stm32
- Peripheral access API for STM32H743 microcontrollers (generated using svd2rust v0.24.1 ( ))
- system_
watchdog - System Window Watchdog
- time
- Time units
- timer
- Timers
- traits
- usb_hs
usb_hs
- USB OTG peripherals
- xspi
xspi
- Quad or Octo SPI bus
Macros§
- block
- Turns the non-blocking expression
$e
into a blocking operation.
Enums§
- interrupt
rt
- Enumeration of all the interrupts.