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

Function twi_reply

Sming/Libraries/I2Cdev/I2Cdev.cpp:1130–1137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128 }
1129
1130 void twi_reply(uint8_t ack) {
1131 // transmit master read ready signal, with or without ack
1132 if (ack){
1133 TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);
1134 } else {
1135 TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT);
1136 }
1137 }
1138
1139 void twi_stop(void) {
1140 // send stop condition

Callers 1

SIGNALFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected