24 #ifndef __USBDHIDKEYB_H__ 25 #define __USBDHIDKEYB_H__ 54 #define KEYB_MAX_CHARS_PER_REPORT \ 107 #define KEYB_IN_REPORT_SIZE 8 108 #define KEYB_OUT_REPORT_SIZE 1 274 #define USBD_HID_KEYB_EVENT_SET_LEDS \ 275 USBD_HID_KEYB_EVENT_BASE 282 #define KEYB_SUCCESS 0 294 #define KEYB_ERR_TOO_MANY_KEYS 1 303 #define KEYB_ERR_TX_ERROR 2 316 #define KEYB_ERR_NOT_FOUND 3 325 #define KEYB_ERR_NOT_CONFIGURED 4 341 uint8_t ui8Modifiers,
342 uint8_t ui8UsageCode,
364 #endif // __USBDHIDKEYB_H__ Definition: usbdhid.h:759
uint32_t USBDHIDKeyboardKeyStateChange(void *pvKeyboardDevice, uint8_t ui8Modifiers, uint8_t ui8UsageCode, bool bPress)
Definition: usbdhidkeyb.c:1096
#define KEYB_OUT_REPORT_SIZE
Definition: usbdhidkeyb.h:108
const uint16_t ui16PID
The product ID that this device is to present in the device descriptor.
Definition: usbdhidkeyb.h:200
void * USBDHIDKeyboardSetCBData(void *pvKeyboardDevice, void *pvCBData)
Definition: usbdhidkeyb.c:1030
void * pvCBData
Definition: usbdhidkeyb.h:226
volatile uint8_t ui8LEDStates
Definition: usbdhidkeyb.h:136
uint8_t ui8USBConfigured
Definition: usbdhidkeyb.h:125
void USBDHIDKeyboardTerm(void *pvKeyboardDevice)
Definition: usbdhidkeyb.c:979
Definition: usbdhidkeyb.h:86
const uint8_t ui8PwrAttributes
Definition: usbdhidkeyb.h:213
Definition: usbdevice.h:135
Definition: usbdhid.h:800
const uint16_t ui16VID
The vendor ID that this device is to present in the device descriptor.
Definition: usbdhidkeyb.h:195
bool USBDHIDKeyboardRemoteWakeupRequest(void *pvKeyboardDevice)
Definition: usbdhidkeyb.c:1289
tHIDReportIdle sReportIdle
Definition: usbdhidkeyb.h:175
tUSBDHIDDevice sHIDDevice
Definition: usbdhidkeyb.h:180
void * USBDHIDKeyboardInit(uint32_t ui32Index, tUSBDHIDKeyboardDevice *psHIDKbDevice)
Definition: usbdhidkeyb.c:814
const uint32_t ui32NumStringDescriptors
Definition: usbdhidkeyb.h:246
Definition: usbdhidkeyb.h:91
uint8_t ui8KeyCount
Definition: usbdhidkeyb.h:142
#define KEYB_IN_REPORT_SIZE
Definition: usbdhidkeyb.h:107
volatile bool bChangeMade
Definition: usbdhidkeyb.h:153
const uint8_t *const * ppui8StringDescriptors
Definition: usbdhidkeyb.h:240
uint32_t(* tUSBCallback)(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgParam, void *pvMsgData)
Definition: usblib.h:1220
Definition: usbdhidkeyb.h:81
Definition: usbdhidkeyb.h:119
uint8_t ui8Protocol
Definition: usbdhidkeyb.h:131
const uint16_t ui16MaxPowermA
The maximum power consumption of the device, expressed in milliamps.
Definition: usbdhidkeyb.h:205
void * USBDHIDKeyboardCompositeInit(uint32_t ui32Index, tUSBDHIDKeyboardDevice *psHIDKbDevice, tCompositeEntry *psCompEntry)
Definition: usbdhidkeyb.c:885
volatile tKeyboardState eKeyboardState
Definition: usbdhidkeyb.h:147
Definition: usbdhidkeyb.h:190
#define KEYB_MAX_CHARS_PER_REPORT
Definition: usbdhidkeyb.h:54
tHIDKeyboardInstance sPrivateData
Definition: usbdhidkeyb.h:253
tKeyboardState
Definition: usbdhidkeyb.h:76
void USBDHIDKeyboardPowerStatusSet(void *pvKeyboardDevice, uint8_t ui8Power)
Definition: usbdhidkeyb.c:1244
const tUSBCallback pfnCallback
Definition: usbdhidkeyb.h:219
Definition: usbdhidkeyb.h:96