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

Function twi_read01

Sming/Libraries/I2Cdev/I2Cdev.cpp:1097–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1095 }
1096
1097 void twi_read01() {
1098 if (TWI_MRX == twi_state) return; // blocking test
1099 if (twi_masterBufferIndex < ptwv -> length) ptwv -> length = twi_masterBufferIndex;
1100 twii_CopyFromBuf(ptwv -> data, ptwv -> length);
1101 twi_Finish(ptwv -> length);
1102 if (twi_cbreadFromDone) return twi_cbreadFromDone(twi_Return_Value);
1103 return;
1104 }
1105
1106 void twi_read00() {
1107 if (TWI_READY != twi_state) return; // blocking test

Callers 1

twi_read00Function · 0.85

Calls 2

twii_CopyFromBufFunction · 0.85
twi_FinishFunction · 0.85

Tested by

no test coverage detected