MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / serialGetchar

Function serialGetchar

wiringPi/wiringSerial.c:224–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 */
223
224int serialGetchar (const int fd)
225{
226 uint8_t x ;
227
228 if (read (fd, &x, 1) != 1)
229 return -1 ;
230
231 return ((int)x) & 0xFF ;
232}

Callers 5

myAnalogReadFunction · 0.85
myDigitalReadFunction · 0.85
drcSetupSerialFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68