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

Functions

devcall usbKbdGetc (device *devptr)
 

Function Documentation

devcall usbKbdGetc ( device *  devptr)

Read a single character from a USB keyboard.

Parameters
devptrPointer to the device table entry for a USB keyboard.
Returns
On success, returns the character read as an unsigned char cast to an int. If keyboard has not been initialized or is in non-blocking mode and no data is available, returns ::SYSERR.