pyocd_svd_read
Reads a microcontroller peripheral register by name and returns its value with decoded bit fields. Simplifies debugging by providing human-readable register data.
Instructions
Read a peripheral register by name. Returns value with bit-field decoding. Example: pyocd.svd.read('GPIOA', 'IDR') to read GPIO input data register.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| register | Yes | Register name (e.g. 'IDR', 'ODR', 'CR1') | |
| peripheral | Yes | Peripheral name (e.g. 'GPIOA') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |