SAMV71 Xplained Ultra Software Package 1.3

HIDDescriptors.h File Reference

#include <stdint.h>
#include "HIDReports.h"
#include "HIDUsages.h"

Go to the source code of this file.

Data Structures

struct  _HIDDescriptor
struct  _HIDDescriptor1
struct  _HIDPhysicalDescriptor0
union  HIDPhysicalInfo
struct  _HIDPhysicalDescriptor

Defines

#define HIDDeviceDescriptor_CLASS   0
#define HIDDeviceDescriptor_SUBCLASS   0
#define HIDDeviceDescriptor_PROTOCOL   0
#define HIDInterfaceDescriptor_CLASS   0x03
#define HIDInterfaceDescriptor_SUBCLASS_NONE   0x00
#define HIDInterfaceDescriptor_SUBCLASS_BOOT   0x01
#define HIDInterfaceDescriptor_PROTOCOL_NONE   0x00
#define HIDInterfaceDescriptor_PROTOCOL_KEYBOARD   0x01
#define HIDInterfaceDescriptor_PROTOCOL_MOUSE   0x02
#define HIDDescriptor_HID1_11   0x0111
#define HIDGenericDescriptor_HID   0x21
#define HIDGenericDescriptor_REPORT   0x22
#define HIDGenericDescriptor_PHYSICAL   0x23

Functions

struct _HIDDescriptor __attribute__ ((__packed__)) HIDDescriptor

Variables

uint8_t bLength
uint8_t bDescriptorType
uint16_t bcdHID
uint8_t bCountryCode
uint8_t bNumDescriptors
uint8_t bDescriptorType0
uint8_t bDescriptorLength0 [2]
uint8_t bNumber
uint8_t bDesignator
uint8_t bFlags

Detailed Description

Purpose

Definitions used for declaring the descriptors of a HID device.

Definition in file HIDDescriptors.h.


Variable Documentation

uint16_t bcdHID

HID class specification release number in BCD format.

Definition at line 165 of file HIDDescriptors.h.

uint8_t bCountryCode

Country code of the device if it is localized.

Definition at line 167 of file HIDDescriptors.h.

uint8_t bDescriptorLength0[2]

Size in bytes of the first subordinate descriptor.

Definition at line 197 of file HIDDescriptors.h.

uint8_t bDescriptorType

Descriptor type (HIDGenericDescriptor_HID).

Definition at line 163 of file HIDDescriptors.h.

Type of the first subordinate descriptor.

Definition at line 195 of file HIDDescriptors.h.

uint8_t bDesignator

Designator: indicates which part of the body affects the item

Definition at line 221 of file HIDDescriptors.h.

uint8_t bFlags

Bits specifying flags: 7..5 Qualifier; 4..0 Effort

Definition at line 225 of file HIDDescriptors.h.

uint8_t bLength[2]

Size of descriptor in bytes.

Numeric expression identifying the length of each Physical descriptor

Definition at line 161 of file HIDDescriptors.h.

uint8_t bNumber

Numeric expression specifying the number of Physical Descriptor sets Physical Descriptor 0 itself not included

Definition at line 197 of file HIDDescriptors.h.

uint8_t bNumDescriptors

Number of subordinate descriptors.

Definition at line 169 of file HIDDescriptors.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines