Hi,
What is the proper use of this function? I tried to find documentation for it, but was unsuccessful.
I'm trying to clear the contents of the read buffer before I expect real data to be there.
Thanks,
Victor
ClrDataAvail( ) usage
Re: ClrDataAvail( ) usage
I would use dataavail(fd) in a loop until all data is read from the buffer.
Re: ClrDataAvail( ) usage
ClearDataAvail is used at the internal driver level when the last byte of data has been read.
It has no effect on the buffer....
It has no effect on the buffer....