Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_usbhid.h File Reference

Internal USB HID definitions. More...

#include "cascoda-bm/cascoda-bm-config.h"
#include "cascoda-bm/cascoda_usb.h"
Include dependency graph for cascoda_usbhid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UsbHIDDescriptor
 HID descriptor. More...
 
struct  HidConfigurationDescriptor
 Configuration descriptor for HID device. More...
 

Macros

#define HID_IN_EP_NO   (4)
 Endpoint number for IN events. More...
 
#define HID_OUT_EP_NO   (5)
 Endpoint number forOUT events. More...
 
#define HID_CTRL_MAX_SIZE   (64)
 Maximum size for messages exchanged over the CONTROL endpoints. More...
 
#define HID_FRAGMENT_SIZE   (64)
 Size of fragments exchanged over the user data endpoints (HID_IN_EP_NO and HID_OUT_EP_NO) More...
 
#define HID_RPT_SIZE   (29)
 
#define HID_GET_REPORT   0x01
 
#define HID_GET_IDLE   0x02
 
#define HID_GET_PROTOCOL   0x03
 
#define HID_SET_REPORT   0x09
 
#define HID_SET_IDLE   0x0A
 
#define HID_SET_PROTOCOL   0x0B
 

Typedefs

typedef struct UsbHIDDescriptor UsbHIDDescriptor_t
 HID descriptor. More...
 
typedef struct HidConfigurationDescriptor HidConfigurationDescriptor_t
 Configuration descriptor for HID device. More...
 

Variables

u8_t USB_StringDescs []
 

Detailed Description

Internal USB HID definitions.

Macro Definition Documentation

◆ HID_CTRL_MAX_SIZE

#define HID_CTRL_MAX_SIZE   (64)

Maximum size for messages exchanged over the CONTROL endpoints.

◆ HID_FRAGMENT_SIZE

#define HID_FRAGMENT_SIZE   (64)

Size of fragments exchanged over the user data endpoints (HID_IN_EP_NO and HID_OUT_EP_NO)

◆ HID_GET_IDLE

#define HID_GET_IDLE   0x02

◆ HID_GET_PROTOCOL

#define HID_GET_PROTOCOL   0x03

◆ HID_GET_REPORT

#define HID_GET_REPORT   0x01

◆ HID_IN_EP_NO

#define HID_IN_EP_NO   (4)

Endpoint number for IN events.

IN is relative to the host in this case, which means this is actually out of this system.

◆ HID_OUT_EP_NO

#define HID_OUT_EP_NO   (5)

Endpoint number forOUT events.

OUT is relative to the host in this case, which means this is actually in to this system.

◆ HID_RPT_SIZE

#define HID_RPT_SIZE   (29)

◆ HID_SET_IDLE

#define HID_SET_IDLE   0x0A

◆ HID_SET_PROTOCOL

#define HID_SET_PROTOCOL   0x0B

◆ HID_SET_REPORT

#define HID_SET_REPORT   0x09

Typedef Documentation

◆ HidConfigurationDescriptor_t

Configuration descriptor for HID device.

◆ UsbHIDDescriptor_t

HID descriptor.

Variable Documentation

◆ USB_StringDescs

u8_t USB_StringDescs[]
extern