cdev_input_available()
Read available data from the host device into the internal input buffer
Synopsis:
#include <qvm/cdev.h>int cdev_input_available(struct cdev_state *cds)Arguments:
- cds
- A pointer to a structure with the character device state (see cdev_state).
Description:
This function reads the available data from the specified host device into the internal input buffer. If you aren't providing your own buffer (i.e., you specified a non-zero buffer size when calling cdev_setup()), then you must call this function when handling the CDEV_INPUT_AVAILABLE_PULSE_CODE pulse.
Returns:
If the received data completely fills the buffer, one (1); if the data doesn't fill the buffer, zero (0); otherwise, a negative errno value.
Page updated:
