decode_register
Decode hardware register values into named bit fields using the target's SVD, reading the live device or interpreting a supplied hex value.
Instructions
Decode a value into named bit fields using the target's SVD. Reads from the device unless a value is supplied — useful for interpreting a number you already have.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"peripheral": "<peripheral>",
"register": "<register>"
},
"name": "decode_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Hex value to decode instead of reading the device | |
| register | Yes | Register name, e.g. 'ENABLE' or 'INFO.PART' | |
| peripheral | Yes | Peripheral name, e.g. 'UARTE0' |