33 #ifndef CASCODA_USBHID_H
34 #define CASCODA_USBHID_H
36 #include "cascoda-bm/cascoda-bm-config.h"
48 #define HID_IN_EP_NO (4)
51 #define HID_OUT_EP_NO (5)
53 #define HID_CTRL_MAX_SIZE (64)
56 #define HID_FRAGMENT_SIZE (64)
62 #define HID_RPT_SIZE (29)
89 #define HID_GET_REPORT 0x01
90 #define HID_GET_IDLE 0x02
91 #define HID_GET_PROTOCOL 0x03
92 #define HID_SET_REPORT 0x09
93 #define HID_SET_IDLE 0x0A
94 #define HID_SET_PROTOCOL 0x0B
101 #define EP_INPUT (0x80)
105 #define EP_OUTPUT (0x00)
unsigned char u8_t
Definition: cascoda_types.h:46
Internal USB definitions.
#define USB_DT_ENDPOINT
Definition: cascoda_usb.h:49
#define USB_DT_CONFIGURATION
Definition: cascoda_usb.h:46
#define USB_DT_HID
Definition: cascoda_usb.h:54
struct UsbInterfaceDescriptor UsbInterfaceDescriptor_t
Interface descriptor.
#define USB_DT_INTERFACE
Definition: cascoda_usb.h:48
#define USB_IPRODUCT
Definition: cascoda_usb.h:154
struct UsbEndpointDescriptor UsbEndpointDescriptor_t
Endpoint descriptor.
#define USB_IMANUFACTURER
Definition: cascoda_usb.h:153
struct UsbConfigurationDescriptor UsbConfigurationDescriptor_t
Configuration descriptor.
struct UsbDeviceDescriptor UsbDeviceDescriptor_t
Device descriptor.
#define USB_DT_DEVICE
Definition: cascoda_usb.h:45
#define USB_DT_HID_RPT
Definition: cascoda_usb.h:55
#define USB_ISERIAL
Definition: cascoda_usb.h:155
#define HID_FRAGMENT_SIZE
Size of fragments exchanged over the user data endpoints (HID_IN_EP_NO and HID_OUT_EP_NO)
Definition: cascoda_usbhid.h:56
#define HID_OUT_EP_NO
Endpoint number forOUT events.
Definition: cascoda_usbhid.h:51
#define HID_CTRL_MAX_SIZE
Maximum size for messages exchanged over the CONTROL endpoints.
Definition: cascoda_usbhid.h:53
struct UsbHIDDescriptor UsbHIDDescriptor_t
HID descriptor.
#define HID_IN_EP_NO
Endpoint number for IN events.
Definition: cascoda_usbhid.h:48
#define HID_RPT_SIZE
Definition: cascoda_usbhid.h:62
struct HidConfigurationDescriptor HidConfigurationDescriptor_t
Configuration descriptor for HID device.
Configuration descriptor for HID device.
Definition: cascoda_usbhid.h:78
UsbEndpointDescriptor_t EPOut
Definition: cascoda_usbhid.h:83
UsbEndpointDescriptor_t EPIn
Definition: cascoda_usbhid.h:82
UsbInterfaceDescriptor_t Interface
Definition: cascoda_usbhid.h:80
UsbHIDDescriptor_t Hid
Definition: cascoda_usbhid.h:81
UsbConfigurationDescriptor_t Config
Definition: cascoda_usbhid.h:79
Configuration descriptor.
Definition: cascoda_usb.h:106
Device descriptor.
Definition: cascoda_usb.h:65
Endpoint descriptor.
Definition: cascoda_usb.h:133
HID descriptor.
Definition: cascoda_usbhid.h:66
u8_t ReportDescSize[2]
Definition: cascoda_usbhid.h:73
u8_t bcdHID[2]
bcd HID spec version
Definition: cascoda_usbhid.h:69
u8_t bLength
Length in bytes ( of this )
Definition: cascoda_usbhid.h:67
u8_t bDescriptorTypeRpt
Report descriptor type.
Definition: cascoda_usbhid.h:72
u8_t bCountryCode
Country code.
Definition: cascoda_usbhid.h:70
u8_t bNumDescriptors
HID class descs following.
Definition: cascoda_usbhid.h:71
u8_t bDescriptorType
USB_DT_HID.
Definition: cascoda_usbhid.h:68
Interface descriptor.
Definition: cascoda_usb.h:119