XenevaOS
Loading...
Searching...
No Matches
Macros | Functions
usbkeyboard.c File Reference
#include "uspi/usbkeyboard.h"
#include "uspi/usbhid.h"
#include "uspi/usbhostcontroller.h"
#include "uspi/devicenameservice.h"
#include "uspi/macros.h"
#include "uspi/assert.h"
#include "uspios.h"
Include dependency graph for usbkeyboard.c:

Macros

#define MSEC2HZ(msec)   ((msec) * HZ / 1000)
 
#define REPEAT_DELAY   MSEC2HZ (400)
 
#define REPEAT_RATE   MSEC2HZ (80)
 

Functions

void USBKeyboardDevice (TUSBKeyboardDevice *pThis, TUSBFunction *pDevice)
 
void _CUSBKeyboardDevice (TUSBKeyboardDevice *pThis)
 
boolean USBKeyboardDeviceConfigure (TUSBFunction *pUSBFunction)
 
void USBKeyboardDeviceRegisterKeyPressedHandler (TUSBKeyboardDevice *pThis, TKeyPressedHandler *pKeyPressedHandler)
 
void USBKeyboardDeviceRegisterSelectConsoleHandler (TUSBKeyboardDevice *pThis, TSelectConsoleHandler *pSelectConsoleHandler)
 
void USBKeyboardDeviceRegisterShutdownHandler (TUSBKeyboardDevice *pThis, TShutdownHandler *pShutdownHandler)
 
void USBKeyboardDeviceUpdateLEDs (TUSBKeyboardDevice *pThis)
 
void USBKeyboardDeviceRegisterKeyStatusHandlerRaw (TUSBKeyboardDevice *pThis, TKeyStatusHandlerRaw *pKeyStatusHandlerRaw)
 
void USBKeyboardDeviceSetLEDs (TUSBKeyboardDevice *pThis, u8 ucLEDMask)
 

Macro Definition Documentation

◆ MSEC2HZ

#define MSEC2HZ (   msec)    ((msec) * HZ / 1000)

◆ REPEAT_DELAY

#define REPEAT_DELAY   MSEC2HZ (400)

◆ REPEAT_RATE

#define REPEAT_RATE   MSEC2HZ (80)

Function Documentation

◆ _CUSBKeyboardDevice()

void _CUSBKeyboardDevice ( TUSBKeyboardDevice pThis)

◆ USBKeyboardDevice()

void USBKeyboardDevice ( TUSBKeyboardDevice pThis,
TUSBFunction pDevice 
)

◆ USBKeyboardDeviceConfigure()

boolean USBKeyboardDeviceConfigure ( TUSBFunction pUSBFunction)

◆ USBKeyboardDeviceRegisterKeyPressedHandler()

void USBKeyboardDeviceRegisterKeyPressedHandler ( TUSBKeyboardDevice pThis,
TKeyPressedHandler pKeyPressedHandler 
)

◆ USBKeyboardDeviceRegisterKeyStatusHandlerRaw()

void USBKeyboardDeviceRegisterKeyStatusHandlerRaw ( TUSBKeyboardDevice pThis,
TKeyStatusHandlerRaw pKeyStatusHandlerRaw 
)

◆ USBKeyboardDeviceRegisterSelectConsoleHandler()

void USBKeyboardDeviceRegisterSelectConsoleHandler ( TUSBKeyboardDevice pThis,
TSelectConsoleHandler pSelectConsoleHandler 
)

◆ USBKeyboardDeviceRegisterShutdownHandler()

void USBKeyboardDeviceRegisterShutdownHandler ( TUSBKeyboardDevice pThis,
TShutdownHandler pShutdownHandler 
)

◆ USBKeyboardDeviceSetLEDs()

void USBKeyboardDeviceSetLEDs ( TUSBKeyboardDevice pThis,
u8  ucLEDMask 
)

◆ USBKeyboardDeviceUpdateLEDs()

void USBKeyboardDeviceUpdateLEDs ( TUSBKeyboardDevice pThis)