Home
last modified time | relevance | path

Searched refs:fidI2c (Results 1 – 2 of 2) sorted by relevance

/hardware/st/nfc/1.0/adaptation/
Di2clayer.c49 static int fidI2c = 0; variable
87 event_table[0].fd = fidI2c; in I2cWorkerThread()
111 int bytesRead = i2cRead(fidI2c, buffer, 3); in I2cWorkerThread()
122 bytesRead = i2cRead(fidI2c, buffer + 2, 1); in I2cWorkerThread()
130 bytesRead = i2cRead(fidI2c, buffer + 1, 2); in I2cWorkerThread()
143 bytesRead = i2cRead(fidI2c, buffer + 3, remaining); in I2cWorkerThread()
161 } while (i2cGetGPIOState(fidI2c) == 1); in I2cWorkerThread()
184 i2cWrite(fidI2c, buffer, length); in I2cWorkerThread()
203 close(fidI2c); in I2cWorkerThread()
235 fidI2c = open("/dev/st21nfc", O_RDWR); in I2cOpenLayer()
[all …]
/hardware/st/nfc/st21nfc/adaptation/
Di2clayer.cc53 static int fidI2c = 0; variable
96 event_table[0].fd = fidI2c; in I2cWorkerThread()
125 int bytesRead = i2cRead(fidI2c, buffer, 3); in I2cWorkerThread()
137 bytesRead = i2cRead(fidI2c, buffer + 2, 1); in I2cWorkerThread()
145 bytesRead = i2cRead(fidI2c, buffer + 1, 2); in I2cWorkerThread()
159 bytesRead = i2cRead(fidI2c, buffer + 3, remaining); in I2cWorkerThread()
178 } while ((i2cGetGPIOState(fidI2c) == 1) && (count++ < 2)); in I2cWorkerThread()
200 i2cWrite(fidI2c, buffer, length); in I2cWorkerThread()
229 i2cResetPulse(fidI2c); in I2cWorkerThread()
234 close(fidI2c); in I2cWorkerThread()
[all …]