Hello all!
Here i will introducing my experience of using Swift-MMIO. With this amazing tool, I can build my BQ25703A library.
BQ25703A is a battery charger IC, it can help me control how to charge my raspberry-pi battery. BQ25703A uses I2C to communicate with raspberry-pi.
So I use Swift-MMIO to define BQ25703A Register, and I can easily create data which will be send to IC.
Also, it will be easy to parse receive data.
In my case, you can find how to use Swift-MMIO with data buffer, and use Swift-MMIO to modify data buffer.