Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions
usbKbdRead.c File Reference
#include <usbkbd.h>
#include <interrupt.h>

Functions

devcall usbKbdRead (device *devptr, void *buf, uint len)
 

Function Documentation

devcall usbKbdRead ( device *  devptr,
void *  buf,
uint  len 
)

Read data from a USB keyboard.

Parameters
devptrPointer to the device table entry for a USB keyboard.
bufPointer to a buffer into which to place the read data.
lenMaximum number of bytes of data to read.
Returns
On success, returns the number of bytes read, which normally is 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).