|
Hi,
I have some problems with implementing/using I2C interface in my driver,
I am using I2C in program placed in subprojects, I have included atmel_i2c_ioctl.h but as it is not in the same directory it can not be included in this way, I am trying to use Stream Driver, the line: CreateFile(_T("I2C1:"),GENERIC_READ|GENERIC_WRITE,0,NULL,CREATE_ALWAYS,0,NULL); compiles with success, but the DeviceIoControl function doesn't seems to work well, I have managed(by copying) to compile my app with DeviceIOControl but I have no signals at I2C pins,
I would appreciate some working example, or some advices
Thanks in advance, AP
|