MCPcopy Create free account
hub / github.com/SmingHub/Sming / twi_Finish

Function twi_Finish

Sming/Libraries/I2Cdev/I2Cdev.cpp:1002–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1000 static void (*fNextInterruptFunction)(void) = 0;
1001
1002 void twi_Finish(byte bRetVal) {
1003 if (ptwv) {
1004 free(ptwv);
1005 ptwv = 0;
1006 }
1007 twi_Done = 0xFF;
1008 twi_Return_Value = bRetVal;
1009 fNextInterruptFunction = 0;
1010 }
1011
1012 uint8_t twii_WaitForDone(uint16_t timeout) {
1013 uint32_t endMillis = millis() + timeout;

Callers 4

twi_write01Function · 0.85
twi_write00Function · 0.85
twi_read01Function · 0.85
twi_read00Function · 0.85

Calls 1

freeFunction · 0.85

Tested by

no test coverage detected