Open SpinFast opened 7 months ago
Maybe not complete or full proof yet, but the idea and code seems to be working out for me.
@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
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