63 #define HID_MIN_POLL 10 64 #define HID_REPORT_SIZE 16 65 #define HID_MAX_USAGE 10 66 #define HID_MAX_NBR_REPORT_FMT 10 67 #define HID_QUEUE_SIZE 10 69 #define HID_ITEM_LONG 0xFE 71 #define HID_ITEM_TYPE_MAIN 0x00 72 #define HID_ITEM_TYPE_GLOBAL 0x01 73 #define HID_ITEM_TYPE_LOCAL 0x02 74 #define HID_ITEM_TYPE_RESERVED 0x03 77 #define HID_MAIN_ITEM_TAG_INPUT 0x08 78 #define HID_MAIN_ITEM_TAG_OUTPUT 0x09 79 #define HID_MAIN_ITEM_TAG_COLLECTION 0x0A 80 #define HID_MAIN_ITEM_TAG_FEATURE 0x0B 81 #define HID_MAIN_ITEM_TAG_ENDCOLLECTION 0x0C 84 #define HID_GLOBAL_ITEM_TAG_USAGE_PAGE 0x00 85 #define HID_GLOBAL_ITEM_TAG_LOG_MIN 0x01 86 #define HID_GLOBAL_ITEM_TAG_LOG_MAX 0x02 87 #define HID_GLOBAL_ITEM_TAG_PHY_MIN 0x03 88 #define HID_GLOBAL_ITEM_TAG_PHY_MAX 0x04 89 #define HID_GLOBAL_ITEM_TAG_UNIT_EXPONENT 0x05 90 #define HID_GLOBAL_ITEM_TAG_UNIT 0x06 91 #define HID_GLOBAL_ITEM_TAG_REPORT_SIZE 0x07 92 #define HID_GLOBAL_ITEM_TAG_REPORT_ID 0x08 93 #define HID_GLOBAL_ITEM_TAG_REPORT_COUNT 0x09 94 #define HID_GLOBAL_ITEM_TAG_PUSH 0x0A 95 #define HID_GLOBAL_ITEM_TAG_POP 0x0B 98 #define HID_LOCAL_ITEM_TAG_USAGE 0x00 99 #define HID_LOCAL_ITEM_TAG_USAGE_MIN 0x01 100 #define HID_LOCAL_ITEM_TAG_USAGE_MAX 0x02 101 #define HID_LOCAL_ITEM_TAG_DESIGNATOR_INDEX 0x03 102 #define HID_LOCAL_ITEM_TAG_DESIGNATOR_MIN 0x04 103 #define HID_LOCAL_ITEM_TAG_DESIGNATOR_MAX 0x05 104 #define HID_LOCAL_ITEM_TAG_STRING_INDEX 0x07 105 #define HID_LOCAL_ITEM_TAG_STRING_MIN 0x08 106 #define HID_LOCAL_ITEM_TAG_STRING_MAX 0x09 107 #define HID_LOCAL_ITEM_TAG_DELIMITER 0x0A 244 #define USB_HID_GET_REPORT 0x01 245 #define USB_HID_GET_IDLE 0x02 246 #define USB_HID_GET_PROTOCOL 0x03 247 #define USB_HID_SET_REPORT 0x09 248 #define USB_HID_SET_IDLE 0x0A 249 #define USB_HID_SET_PROTOCOL 0x0B 255 #define USB_HID_CLASS 0x03 258 #define HID_BOOT_CODE 0x01 259 #define HID_KEYBRD_BOOT_CODE 0x01 260 #define HID_MOUSE_BOOT_CODE 0x02 278 #define USBH_HID_CLASS &HID_Class struct _HID_CollectionTypeDef * NextPtr
USBH_ClassTypeDef HID_Class
Header file for usbh_core.c.
USBH_StatusTypeDef USBH_HID_SetIdle(USBH_HandleTypeDef *phost, uint8_t duration, uint8_t reportId)
USBH_Set_Idle Set Idle State.
This file contains all the prototypes for the usbh_hid_keybd.c.
uint8_t USBH_HID_GetPollInterval(USBH_HandleTypeDef *phost)
USBH_HID_GetPollInterval Return HID device poll time.
USBH_StatusTypeDef USBH_HID_GetReport(USBH_HandleTypeDef *phost, uint8_t reportType, uint8_t reportId, uint8_t *reportBuff, uint8_t reportLen)
USBH_HID_GetReport retreive Set Report.
struct _HID_ReportData HID_ReportDataTypeDef
USBH_StatusTypeDef USBH_HID_GetHIDDescriptor(USBH_HandleTypeDef *phost, uint16_t length)
USBH_Get_HID_Descriptor Issue HID Descriptor command to the device. Once the response received...
void USBH_HID_EventCallback(USBH_HandleTypeDef *phost)
The function is a callback about HID Data events.
struct _HIDDescriptor HID_DescTypeDef
struct _HID_CollectionTypeDef HID_CollectionTypeDef
struct _HID_AppCollectionTypeDef HID_AppCollectionTypeDef
This file contains all the prototypes for the usbh_hid_mouse.c.
struct _HID_Process HID_HandleTypeDef
USBH_StatusTypeDef USBH_HID_SetReport(USBH_HandleTypeDef *phost, uint8_t reportType, uint8_t reportId, uint8_t *reportBuff, uint8_t reportLen)
USBH_HID_Set_Report Issues Set Report.
uint16_t fifo_write(FIFO_TypeDef *f, const void *buf, uint16_t nbytes)
fifo_write Read from FIFO.
#define HID_MAX_NBR_REPORT_FMT
uint8_t bReportDescriptorType
USBH_StatusTypeDef USBH_HID_SetProtocol(USBH_HandleTypeDef *phost, uint8_t protocol)
USBH_Set_Protocol Set protocol State.
struct _HID_ReportIDTypeDef HID_ReportIDTypeDef
uint16_t fifo_read(FIFO_TypeDef *f, void *buf, uint16_t nbytes)
fifo_read Read from FIFO.
HID_TypeTypeDef USBH_HID_GetDeviceType(USBH_HandleTypeDef *phost)
USBH_HID_GetDeviceType Return Device function.
HID_CtlStateTypeDef ctl_state
void fifo_init(FIFO_TypeDef *f, uint8_t *buf, uint16_t size)
fifo_init Initialize FIFO.
uint32_t Usage[HID_MAX_USAGE]
USBH_StatusTypeDef USBH_HID_GetHIDReportDescriptor(USBH_HandleTypeDef *phost, uint16_t length)
USBH_Get_HID_ReportDescriptor Issue report Descriptor command to the device. Once the response receiv...