decode_register_svd
Decode a microcontroller register value using a CMSIS-SVD file. Specify peripheral and register name to read real bit-fields from the vendor's SVD.
Instructions
Decode a register by name using a CMSIS-SVD chip description file.
Instead of typing out the bit map by hand (as decode_register needs), point
this at the vendor's .svd file and name the peripheral + register. It reads
the real bit-fields from the SVD and decodes your value against them.
Example: decode_register_svd(0x4002, "STM32F407.svd", "RCC", "CR")
Args: value: The raw register value you read back. svd_path: Path to a CMSIS-SVD file on this machine. peripheral: Peripheral name as in the SVD, e.g. "RCC". register: Register name as in the SVD, e.g. "CR". width: Register width in bits for display (default 32).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| width | No | ||
| register | Yes | ||
| svd_path | Yes | ||
| peripheral | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||