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

Go to the source code of this file.

Data Structures

struct  tHIDKeyboardInstance
 
struct  tUSBDHIDKeyboardDevice
 

Macros

#define KEYB_MAX_CHARS_PER_REPORT   6
 
#define KEYB_IN_REPORT_SIZE   8
 
#define KEYB_OUT_REPORT_SIZE   1
 
#define USBD_HID_KEYB_EVENT_SET_LEDS   USBD_HID_KEYB_EVENT_BASE
 
#define KEYB_SUCCESS   0
 This return code from USBDHIDKeyboardKeyStateChange() indicates success. More...
 
#define KEYB_ERR_TOO_MANY_KEYS   1
 
#define KEYB_ERR_TX_ERROR   2
 
#define KEYB_ERR_NOT_FOUND   3
 
#define KEYB_ERR_NOT_CONFIGURED   4
 

Enumerations

enum  tKeyboardState { HID_KEYBOARD_STATE_UNCONFIGURED, HID_KEYBOARD_STATE_IDLE, HID_KEYBOARD_STATE_WAIT_DATA, HID_KEYBOARD_STATE_SEND }
 

Functions

void * USBDHIDKeyboardInit (uint32_t ui32Index, tUSBDHIDKeyboardDevice *psHIDKbDevice)
 
void * USBDHIDKeyboardCompositeInit (uint32_t ui32Index, tUSBDHIDKeyboardDevice *psHIDKbDevice, tCompositeEntry *psCompEntry)
 
void USBDHIDKeyboardTerm (void *pvKeyboardDevice)
 
void * USBDHIDKeyboardSetCBData (void *pvKeyboardDevice, void *pvCBData)
 
uint32_t USBDHIDKeyboardKeyStateChange (void *pvKeyboardDevice, uint8_t ui8Modifiers, uint8_t ui8UsageCode, bool bPress)
 
void USBDHIDKeyboardPowerStatusSet (void *pvKeyboardDevice, uint8_t ui8Power)
 
bool USBDHIDKeyboardRemoteWakeupRequest (void *pvKeyboardDevice)
 
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale