jkelleyrtp / dw1000-rs

Rust driver crate for the Decawave DW1000 UWB transceiver
47 stars 10 forks source link

Investigate whether register interface can be autogenerated #3

Open hannobraun opened 6 years ago

hannobraun commented 6 years ago

Manually implementing the low-level register interface is pretty tedious. Maybe the register description in the user manual was generated from a structured data format. If that were the case, and if we could get our hands on this data, we could generate the whole interface.

I don't know if this is practical. I couldn't find anything in my initial search. But maybe Decawave would be willing to give out this information, if it exists.

hannobraun commented 6 years ago

The register access code is mostly generated by a macro now, making this issue less pressing. It would still be nice to get this information from a file provided by Decawave though, and not have to duplicate it in the macro.