MCPcopy Create free account
hub / github.com/PowerBroker2/SerialTransfer / processData

Method processData

src/I2CTransfer.cpp:92–111  ·  view source on GitHub ↗

void I2CTransfer::processData() Description: ------------ * Parses incoming serial data automatically when an I2C frame is received Inputs: ------- * void Return: ------- * void */

Source from the content-addressed store, hash-verified

90 * void
91*/
92void I2CTransfer::processData()
93{
94 uint8_t recChar;
95 classToUse->bytesRead = 0;
96
97 while (classToUse->port->available())
98 {
99 recChar = classToUse->port->read();
100 classToUse->bytesRead = classToUse->packet.parse(recChar);
101 classToUse->status = classToUse->packet.status;
102
103 if (classToUse->status != CONTINUE)
104 {
105 if (classToUse->status <= 0)
106 classToUse->reset();
107
108 break;
109 }
110 }
111}
112
113
114/*

Callers

nothing calls this directly

Calls 3

availableMethod · 0.80
parseMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected