Embedded Xinu Operating System
An ongoing research project and educational operating system.
|
Functions | |
devcall | usbKbdRead (device *devptr, void *buf, uint len) |
devcall usbKbdRead | ( | device * | devptr, |
void * | buf, | ||
uint | len | ||
) |
Read data from a USB keyboard.
devptr | Pointer to the device table entry for a USB keyboard. |
buf | Pointer to a buffer into which to place the read data. |
len | Maximum number of bytes of data to read. |
len
, but may be less than len
if the keyboard has been set to non-blocking mode. Returns ::SYSERR on other error (currently, only if usbKbdInit() has not yet been called).