I was having a lot of trouble sending and receiving i2c data from userspace in my apps, so I wrote this wrapper. In accel_test/accel.c it goes over the function arguments. The program saves ~20s worth of IMU data into the root home directory. If anyone else finds it useful please let me know.
Things to note: I wrote it so I could send/receive multiply bytes. It’s only been tested on a mangoh red with a WP7702.