Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
205
int 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
drcSetupSerial
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
1
main
Function · 0.68