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

Function fxRestartSerial

tools/serial2xsbug/serial2xsbug_win.c:275–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void fxRestartSerial(txSerialTool self)
276{
277 mxThrowElse(EscapeCommFunction(self->serialConnection, SETRTS) != 0);
278 mxThrowElse(EscapeCommFunction(self->serialConnection, CLRDTR) != 0);
279 Sleep(5);
280 mxThrowElse(EscapeCommFunction(self->serialConnection, CLRRTS) != 0);
281 if (self->dtr)
282 mxThrowElse(EscapeCommFunction(self->serialConnection, SETDTR) != 0);
283}
284
285void fxWriteNetwork(txSerialMachine machine, char* buffer, int size)
286{

Callers

nothing calls this directly

Calls 1

SleepClass · 0.85

Tested by

no test coverage detected