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

Function fxCloseSerial

tools/serial2xsbug/serial2xsbug_mac.c:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void fxCloseSerial(txSerialTool self)
62{
63 if (self->serialSource) {
64 CFRunLoopRemoveSource(CFRunLoopGetCurrent(), self->serialSource, kCFRunLoopCommonModes);
65 CFRelease(self->serialSource);
66 self->serialSource = NULL;
67 }
68 if (self->serialSocket) {
69 CFSocketInvalidate(self->serialSocket);
70 CFRelease(self->serialSocket);
71 self->serialSocket = NULL;
72 }
73}
74
75txSerialMachine fxOpenNetwork(txSerialTool self, uint32_t value)
76{

Callers 3

fxReadSerialFunction · 0.70
fxUnregisterSerialFunction · 0.70
fxReadSerialBufferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected