Module pac

Module pac 

Source
Expand description

Peripheral access API for STM32G431 microcontrollers (generated using svd2rust v0.36.1 (4052ce6 2025-04-04))

You can find an overview of the generated API here.

API features to be included in the next svd2rust release can be generated by cloning the svd2rust repository, checking out the above commit, and running cargo doc --open.

Modules§

adc1
Analog-to-Digital Converter
adc12_common
Analog-to-Digital Converter
aes
Advanced encryption standard hardware accelerator
comp
Comparator control and status register
cordic
CORDIC Co-processor
crc
Cyclic redundancy check calculation unit
crs
CRS
dac1
Digital-to-analog converter
dbgmcu
Debug support
dma1
DMA controller
dmamux
DMAMUX
exti
External interrupt/event controller
fdcan
FDCAN
flash
Flash
fmac
Filter Math Accelerator
gpioa
General-purpose I/Os
gpiob
General-purpose I/Os
gpioc
General-purpose I/Os
i2c1
Inter-integrated circuit
iwdg
WinWATCHDOG
lptimer1
Low power timer
lpuart1
Universal synchronous asynchronous receiver transmitter
opamp
Operational amplifiers
pwr
Power control
rcc
Reset and clock control
rng
Random number generator
rtc
Real-time clock
sai
Serial audio interface
spi1
Serial peripheral interface/Inter-IC sound
syscfg
System configuration controller
tamp
Tamper and backup registers
tim1
Advanced-timers
tim2
Advanced-timers
tim3
Advanced-timers
tim6
Basic-timers
tim15
General purpose timers
tim16
General purpose timers
uart4
Universal synchronous asynchronous receiver transmitter
ucpd1
UCPD1
usart1
Universal synchronous asynchronous receiver transmitter
usb
USB_FS_device
vrefbuf
Voltage reference buffer
wwdg
System window watchdog

Structs§

CBP
Cache and branch predictor maintenance operations
CPUID
CPUID
CorePeripherals
Core peripherals
DCB
Debug Control Block
DWT
Data Watchpoint and Trace unit
FPB
Flash Patch and Breakpoint unit
FPU
Floating Point Unit
ITM
Instrumentation Trace Macrocell
MPU
Memory Protection Unit
NVIC
Nested Vector Interrupt Controller
Peripherals
All the peripherals.
SCB
System Control Block
SYST
SysTick: System Timer
TPIU
Trace Port Interface Unit

Enums§

Interrupt
Enumeration of all the interrupts.
interrupt
Enumeration of all the interrupts.

Constants§

NVIC_PRIO_BITS
Number available in the NVIC for configuring priority

Type Aliases§

ADC1
Analog-to-Digital Converter
ADC2
Analog-to-Digital Converter
ADC12_COMMON
Analog-to-Digital Converter
ADC345_COMMON
Analog-to-Digital Converter
AES
Advanced encryption standard hardware accelerator
COMP
Comparator control and status register
CORDIC
CORDIC Co-processor
CRC
Cyclic redundancy check calculation unit
CRS
CRS
DAC1
Digital-to-analog converter
DAC2
Digital-to-analog converter
DAC3
Digital-to-analog converter
DAC4
Digital-to-analog converter
DBGMCU
Debug support
DMA1
DMA controller
DMA2
DMA controller
DMAMUX
DMAMUX
EXTI
External interrupt/event controller
FDCAN
FDCAN
FDCAN1
FDCAN
FLASH
Flash
FMAC
Filter Math Accelerator
GPIOA
General-purpose I/Os
GPIOB
General-purpose I/Os
GPIOC
General-purpose I/Os
GPIOD
General-purpose I/Os
GPIOE
General-purpose I/Os
GPIOF
General-purpose I/Os
GPIOG
General-purpose I/Os
I2C1
Inter-integrated circuit
I2C2
Inter-integrated circuit
I2C3
Inter-integrated circuit
IWDG
WinWATCHDOG
LPTIMER1
Low power timer
LPUART1
Universal synchronous asynchronous receiver transmitter
OPAMP
Operational amplifiers
PWR
Power control
RCC
Reset and clock control
RNG
Random number generator
RTC
Real-time clock
SAI
Serial audio interface
SPI1
Serial peripheral interface/Inter-IC sound
SPI2
Serial peripheral interface/Inter-IC sound
SPI3
Serial peripheral interface/Inter-IC sound
SYSCFG
System configuration controller
TAMP
Tamper and backup registers
TIM1
Advanced-timers
TIM2
Advanced-timers
TIM3
Advanced-timers
TIM4
Advanced-timers
TIM6
Basic-timers
TIM7
Basic-timers
TIM8
Advanced-timers
TIM15
General purpose timers
TIM16
General purpose timers
TIM17
General purpose timers
TIM20
Advanced-timers
UART4
Universal synchronous asynchronous receiver transmitter
UCPD1
UCPD1
USART1
Universal synchronous asynchronous receiver transmitter
USART2
Universal synchronous asynchronous receiver transmitter
USART3
Universal synchronous asynchronous receiver transmitter
USB
USB_FS_device
VREFBUF
Voltage reference buffer
WWDG
System window watchdog

Attribute Macros§

interrupt