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

Function twi_writeTo

Sming/Libraries/I2Cdev/I2Cdev.cpp:1086–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1084 }
1085
1086 void twi_writeTo(uint8_t address, uint8_t* data, uint8_t length, uint8_t wait) {
1087 uint8_t i;
1088 ptwv = (twi_Write_Vars *)malloc(sizeof(twi_Write_Vars));
1089 ptwv -> address = address;
1090 ptwv -> data = data;
1091 ptwv -> length = length;
1092 ptwv -> wait = wait;
1093 fNextInterruptFunction = twi_write00;
1094 return twi_write00();
1095 }
1096
1097 void twi_read01() {
1098 if (TWI_MRX == twi_state) return; // blocking test

Callers 2

endTransmissionMethod · 0.70
nbendTransmissionMethod · 0.70

Calls 2

mallocFunction · 0.85
twi_write00Function · 0.85

Tested by

no test coverage detected