I need a simple C script to read sensor data from a INA219 chip via I2C ( [url removed, login to view] ).
Everything is already written and documented for the 3.x kernel module ( [url removed, login to view] )
I use 2.6.32-5-486 Kernel and dont need a kernel module, simple c code that uses the #include and reads the data is enough.
I am currently stuck because all examples and kernel modules i found use i2c_read functions but due to kernel and smbus in i2c-dev.h I have to use i2c_smbus_read_i2c functions.
I am not a C programmer - I can already read registers but it seems that I mismatch datatypes, bits and bytes.
7 freelancers are bidding on average $24 for this job
Hi, I can provide you the user space application for reading the registers of the I2C-device, but need some additional information. Please see PMB. Thanks. Regards, Luis