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

Method write

Sming/Core/Wire.cpp:174–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174size_t TwoWire::write(uint8_t data)
175{
176 if(transmitting) {
177 if(txBufferLength >= BUFFER_LENGTH) {
178 setWriteError();
179 return 0;
180 }
181 txBuffer[txBufferIndex] = data;
182 ++txBufferIndex;
183 txBufferLength = txBufferIndex;
184 } else {
185 // i2c_slave_transmit(&data, 1);
186 }
187 return 1;
188}
189
190size_t TwoWire::write(const uint8_t* data, size_t quantity)
191{

Callers 11

createComponentsFileFunction · 0.45
mainFunction · 0.45
update_project_filesFunction · 0.45
update_wokwiFunction · 0.45
find_toolFunction · 0.45
mainFunction · 0.45
scanMethod · 0.45
parse_lineMethod · 0.45
fetch_logsFunction · 0.45
fileWriteFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected