Hi everyone,


I want to try to write a driver for this battery fuel gauge http://www.ti.com/lit/ds/symlink/bq2...=1588097914776.

This is my first attempt of writing a driver and it seems like a great opportunity to learn many things through the procedure.

As I mentioned, I've never written a driver before and I want to know If there are any general rules or guides or steps (from where to start and where to finish) that I should follow. There are some general information that I should gather before starting? What I know so far, is that the communication protocol will be the I2C and I will write in C


Thanks in advance
Nick