15 #ifndef __SILICON_LABS_HIDKBD_H__
16 #define __SILICON_LABS_HIDKBD_H__
71 extern const char HIDKBD_ReportDescriptor[ 69 ];
76 USBD_State_TypeDef newState );
#define SL_PACK_END()
Macro for handling packed structs. Use this macro after the struct definition. With GCC...
HIDKBD_SetReportFunc_t setReportFunc
void HIDKBD_StateChangeEvent(USBD_State_TypeDef oldState, USBD_State_TypeDef newState)
Handle USB state change events, this function must be called each time the USB device state is change...
#define SL_PACK_START(x)
Macro for handling packed structs. Use this macro before the struct definition. X denotes the max...
int HIDKBD_SetupCmd(const USB_Setup_TypeDef *setup)
Handle USB setup commands. Implements HID class specific commands. This function must be called each ...
void HIDKBD_Init(HIDKBD_Init_t *init)
Initialize HID Keyboard driver.
void(* HIDKBD_SetReportFunc_t)(uint8_t report)
Callback function pointer for HID output reports. This function will be called by the driver each tim...
void HIDKBD_KeyboardEvent(HIDKBD_KeyReport_t *report)
Report a keyboard press/release event.
#define SL_ATTRIBUTE_PACKED
GCC style macro for handling packed structs.