decode_register_svd
Decode a register value into named bitfields using a CMSIS-SVD file, showing enum meanings and descriptions to inspect peripheral configuration.
Instructions
用 CMSIS-SVD 文件解码寄存器位域(含枚举值提示与描述)。 svd_path 指向厂商 SVD 文件(CubeMX/固件包里有),如: decode_register_svd("STM32F103.svd", "RCC", "CR", 0x00040002)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| register | Yes | ||
| svd_path | Yes | ||
| peripheral | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |