eclipse-cdt-cloud / vscode-peripheral-inspector

vscode peripheral inspector
https://open-vsx.org/extension/eclipse-cdt/peripheral-inspector
MIT License
3 stars 3 forks source link

Modify and export registers data from peripheral view #28

Open QuocTrung76 opened 4 weeks ago

QuocTrung76 commented 4 weeks ago

Type: Feature Request

I am currently working with vscode-peripheral-inspector, and it has been extremely useful in managing peripheral registers through the peripheral view.

As part of my project, I would like to implement additional functionality, specifically the ability to modify and export the registers data from the peripheral view programmatically. While the current API allows for loading and reading the data, I have not found an exposed method to modify or export the registers's value.

Would it be possible to extend the current API to include such functionality?

I am implementing the peripheral view for the hardware device, it requests to send a couple of gdb commands to read-write the IO registers: -data-write-memory-bytes --thread-group i1 0x10020028 01000000 -data-read-memory-bytes --thread-group i1 0x10020028 4

These gdb commands should be sent from the adapter layer, could it be possible to provide the API to do it?

jonahgraham commented 3 weeks ago

Would it be possible to extend the current API to include such functionality?

Yes that should be possible.

These gdb commands should be sent from the adapter layer, could it be possible to provide the API to do it?

Do you have a proposal for providing such API?

While I think this idea would be ok, I think you will need to provide the appropriate PRs for it. As a first step you can provide some details to what your new API would look like so it can be reviewed by the primary maintainers of this project (such as @thegecko)