Crate stm32ral

source ·
Expand description

This project provides a register access layer (RAL) for all STM32 microcontrollers.

When built, you must specify a device feature, such as stm32f405. This will cause all modules in that device’s module to be re-exported from the top level, so that for example stm32ral::gpio will resolve to stm32ral::stm32f4::stm32f405::gpio.

In the generated documentation, all devices are visible inside their family modules, but when built for a specific device, only that devices’ constants will be available.

See the README for example usage.

Modules

Parent module for all CORTEX_M devices.
Parent module for all STM32F0 devices.
Parent module for all STM32F1 devices.
Parent module for all STM32F2 devices.
Parent module for all STM32F3 devices.
Parent module for all STM32F4 devices.
Parent module for all STM32F7 devices.
Parent module for all STM32H7 devices.
Parent module for all STM32L0 devices.
Parent module for all STM32L1 devices.
Parent module for all STM32L4 devices.

Macros

Modify a RWRegister or UnsafeRWRegister.
Read the value from a RORegister, RWRegister, UnsafeRORegister, or UnsafeRWRegister.
Reset a RWRegister, UnsafeRWRegister, WORegister, or UnsafeWORegister to its reset value.
Write to a RWRegister or UnsafeRWRegister.

Structs

A read-only register of type T.
A read-write register of type T.
A read-only register of type T, where read access is unsafe.
A read-write register of type T, where read/write access is unsafe.
A write-only register of type T, where write access is unsafe.
A write-only register of type T.