embassy-rs / chiptool

Apache License 2.0
37 stars 21 forks source link

Unmappable memory generator #17

Open SpinFast opened 7 months ago

SpinFast commented 7 months ago

Adds a custom generator for interface based (unmappable memory) register manipulation.

Based on the i2c branch adds a interface based regblock where the interface is expected to provide a simple single register read/write fallible function pair.

Every register then can be written, read, modified similarly to how chiptool does things for mappable memory regions.

I'm testing this out in conjunction with a driver for the WM8960 on many imxrt boards

https://github.com/spinfast/wm8960-rs

SpinFast commented 7 months ago

Maybe not complete or full proof yet, but the idea and code seems to be working out for me.

SpinFast commented 7 months ago

@Dirbaio I'm waiting on this to publish my wm8960 crate, it would be great if this could be added and rolled into a new released version of chiptool

wm8960-rs is working well for me