I have Gumstix Overo, with 2.6.35 kernel on it.. I need to achieve
communication with Sparkfun IMU3000 Accelerometer&Gyro. I had spent so much
hours on it, but i could not succeed on using "ioctl" function, i need your
I can open i2c-3 port without any problem. But, after running (ioctl(fh,
I2C_SLAVE,GYRO_W) function ,as i used at the below, i get this error:
"ioctl: Invalid Argument"
I have realized that, if i write 7 bits of data to the address of slave
device, i dont get any errors. But all of my r/w slave address bits are 8
bit, so how can i use ioctl without problem??
Here is the code;
//addresses of imu
#define GYRO_W 0xD0
#define GYRO_R 0XD1
#define ACC_W 0xA6
#define ACC_R 0xA7