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

Function twi_readFrom

Sming/Libraries/I2Cdev/I2Cdev.cpp:1119–1128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1117 }
1118
1119 void twi_readFrom(uint8_t address, uint8_t* data, uint8_t length) {
1120 uint8_t i;
1121
1122 ptwv = (twi_Write_Vars *)malloc(sizeof(twi_Write_Vars));
1123 ptwv -> address = address;
1124 ptwv -> data = data;
1125 ptwv -> length = length;
1126 fNextInterruptFunction = twi_read00;
1127 return twi_read00();
1128 }
1129
1130 void twi_reply(uint8_t ack) {
1131 // transmit master read ready signal, with or without ack

Callers 2

requestFromMethod · 0.70
nbrequestFromMethod · 0.70

Calls 2

mallocFunction · 0.85
twi_read00Function · 0.85

Tested by

no test coverage detected