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.cc54 static int fidI2c = 0; variable
99 event_table[0].fd = fidI2c; in I2cWorkerThread()
135 int bytesRead = i2cRead(fidI2c, buffer, 3); in I2cWorkerThread()
147 bytesRead = i2cRead(fidI2c, buffer + 2, 1); in I2cWorkerThread()
155 bytesRead = i2cRead(fidI2c, buffer + 1, 2); in I2cWorkerThread()
169 bytesRead = i2cRead(fidI2c, buffer + 3, remaining); in I2cWorkerThread()
187 } while ((i2cGetGPIOState(fidI2c) == 1) && (count++ < 2)); in I2cWorkerThread()
209 i2cWrite(fidI2c, buffer, length); in I2cWorkerThread()
238 i2cResetPulse(fidI2c); in I2cWorkerThread()
246 close(fidI2c); in I2cWorkerThread()
[all …]