MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / comRead

Function comRead

external/rs232/rs232-linux.cpp:205–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205int comRead(int index, char * buffer, size_t len)
206{
207 if (index >= noDevices || index < 0)
208 return 0;
209 if (comDevices[index].handle <= 0)
210 return 0;
211 int res = read(comDevices[index].handle, buffer, len);
212 if (res < 0)
213 res = 0;
214 return res;
215}
216
217/*****************************************************************************/
218int _BaudFlag(int BaudRate)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected