cdev_input_available()
Read available data from a host device write it 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:
If you aren't providing your own buffer (see 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, 1 (one); if the data doesn't fill the buffer, 0 (zero); otherwise, a negative errno value.
Page updated:
