MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxReadSerialAux

Function fxReadSerialAux

tools/serial2xsbug/serial2xsbug_win.c:264–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264DWORD fxReadSerialAux(txSerialTool self)
265{
266 DWORD size;
267 if (!ReadFile(self->serialConnection, self->serialBuffer, mxSerialBufferSize - 1, &size, &self->serialOverlapped)) {
268 DWORD error = WSAGetLastError();
269 if (error != ERROR_IO_PENDING) mxThrowError(error);
270 return 0;
271 }
272 return size;
273}
274
275void fxRestartSerial(txSerialTool self)
276{

Callers 2

fxOpenSerialFunction · 0.85
fxReadSerialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected