| 1357 | } |
| 1358 | |
| 1359 | uint8_t TwoWire::endTransmission(uint16_t timeout) { |
| 1360 | // transmit buffer (blocking) |
| 1361 | //int8_t ret = |
| 1362 | twi_cbendTransmissionDone = NULL; |
| 1363 | twi_writeTo(txAddress, txBuffer, txBufferLength, 1); |
| 1364 | int8_t ret = twii_WaitForDone(timeout); |
| 1365 | |
| 1366 | // reset tx buffer iterator vars |
| 1367 | txBufferIndex = 0; |
| 1368 | txBufferLength = 0; |
| 1369 | |
| 1370 | // indicate that we are done transmitting |
| 1371 | // twi_transmitting = 0; |
| 1372 | return ret; |
| 1373 | } |
| 1374 | |
| 1375 | void TwoWire::nbendTransmission(void (*function)(int)) { |
| 1376 | twi_cbendTransmissionDone = function; |
no test coverage detected