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

Function serialDataAvail

wiringPi/wiringSerial.c:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 */
204
205int serialDataAvail (const int fd)
206{
207 int result ;
208
209 if (ioctl (fd, FIONREAD, &result) == -1)
210 return -1 ;
211
212 return result ;
213}
214
215
216/*

Callers 2

drcSetupSerialFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68