USBLib API Guide  1.00.00.01
Macros | Typedefs | Enumerations | Functions | Variables
usbhhid.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USBH_EVENT_HID_SETRPT   USBH_HID_EVENT_BASE + 0
 
#define USBH_EVENT_HID_REPORT   USBH_HID_EVENT_BASE + 1
 
#define USBH_EVENT_HID_KB_PRESS   USBH_HID_EVENT_BASE + 16
 The HID keyboard detected a key being pressed. More...
 
#define USBH_EVENT_HID_KB_REL   USBH_HID_EVENT_BASE + 17
 The HID keyboard detected a key being released. More...
 
#define USBH_EVENT_HID_KB_MOD   USBH_HID_EVENT_BASE + 18
 The HID keyboard detected one of the keyboard modifiers being pressed. More...
 
#define USBH_EVENT_HID_MS_PRESS   USBH_HID_EVENT_BASE + 32
 A button was pressed on a HID mouse. More...
 
#define USBH_EVENT_HID_MS_REL   USBH_HID_EVENT_BASE + 33
 A button was released on a HID mouse. More...
 
#define USBH_EVENT_HID_MS_X   USBH_HID_EVENT_BASE + 34
 The HID mouse detected movement in the X direction. More...
 
#define USBH_EVENT_HID_MS_Y   USBH_HID_EVENT_BASE + 35
 The HID mouse detected movement in the Y direction. More...
 

Typedefs

typedef struct tHIDInstance tHIDInstance
 

Enumerations

enum  tHIDSubClassProtocol { eUSBHHIDClassNone = 0, eUSBHHIDClassKeyboard, eUSBHHIDClassMouse, eUSBHHIDClassVendor }
 

Functions

tHIDInstanceUSBHHIDOpen (tHIDSubClassProtocol iDeviceType, tUSBCallback pfnCallback, void *pvCBData)
 
void USBHHIDClose (tHIDInstance *psHIDInstance)
 
uint32_t USBHHIDGetReportDescriptor (tHIDInstance *psHIDInstance, uint8_t *pui8Buffer, uint32_t ui32Size)
 
uint32_t USBHHIDSetIdle (tHIDInstance *psHIDInstance, uint8_t ui8Duration, uint8_t ui8ReportID)
 
uint32_t USBHHIDSetProtocol (tHIDInstance *psHIDInstance, uint32_t ui32BootProtocol)
 
uint32_t USBHHIDSetReport (tHIDInstance *psHIDInstance, uint32_t ui32Interface, uint8_t *pui8Data, uint32_t ui32Size)
 
uint32_t USBHHIDGetReport (tHIDInstance *psHIDInstance, uint32_t ui32Interface, uint8_t *pui8Data, uint32_t ui32Size)
 
uint32_t USBHHIDLPMSleep (tHIDInstance *psHIDInstance)
 
uint32_t USBHHIDLPMStatus (tHIDInstance *psHIDInstance)
 

Variables

const tUSBHostClassDriver g_sUSBHIDClassDriver
 
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale