Lines Matching refs:buffer
106 uint8_t buffer[300]; in I2cWorkerThread() local
110 int bytesRead = i2cRead(fidI2c, buffer, 3); in I2cWorkerThread()
113 if ((buffer[0] != 0x7E) && (buffer[1] != 0x7E)) { in I2cWorkerThread()
116 if (buffer[1] != 0x7E) { in I2cWorkerThread()
119 buffer[1]); in I2cWorkerThread()
120 buffer[0] = buffer[1]; in I2cWorkerThread()
121 buffer[1] = buffer[2]; in I2cWorkerThread()
122 bytesRead = i2cRead(fidI2c, buffer + 2, 1); in I2cWorkerThread()
126 } else if (buffer[2] != 0x7E) { in I2cWorkerThread()
128 buffer[2]); in I2cWorkerThread()
129 buffer[0] = buffer[2]; in I2cWorkerThread()
130 bytesRead = i2cRead(fidI2c, buffer + 1, 2); in I2cWorkerThread()
140 int remaining = buffer[2]; in I2cWorkerThread()
144 bytesRead = i2cRead(fidI2c, buffer + 3, remaining); in I2cWorkerThread()
147 DispHal("RX DATA", buffer, 3 + bytesRead); in I2cWorkerThread()
148 HalSendUpstream(hHAL, buffer, 3 + bytesRead); in I2cWorkerThread()
160 memset(buffer, 0xca, sizeof(buffer)); in I2cWorkerThread()
180 uint8_t buffer[MAX_BUFFER_SIZE]; in I2cWorkerThread() local
184 read(cmdPipe[0], buffer, length); in I2cWorkerThread()
185 i2cWrite(fidI2c, buffer, length); in I2cWorkerThread()
193 bytes_read = read(cmdPipe[0], buffer, MAX_BUFFER_SIZE); in I2cWorkerThread()