Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_HID_COLLECTION Struct Reference

#include <hid.h>

Data Fields

uint16_t page
 The usage page this collection refers to (eg HID_PAGE_GENERIC_DESKTOP).
uint16_t usage
 The usage within the usage page (eg HID_DESKTOP_MOUSE).
uint32_t flags
 The main item flags for this collection (eg HID_MAIN_COLLECTION_APPLICATION).
uint32_t start
 The first byte of this collection in the report descriptor.
HID_REPORTreports
 The list of reports contained in this collection.
uint32_t reportcount
 The number of reports contained in this collection.
HID_COLLECTIONcollections
 The list of collections contained in this collection.
uint32_t collectioncount
 The number of collections contained in this collection.
HID_COLLECTIONparent
 The parent collection or nil if this is a top level collection.
HID_DEVICEdevice
 The device this collection belongs to.
HID_CONSUMERconsumer
 The consumer which is bound to this collection (or nil if not bound).
void * privatedata
 Private data for the consumer of this collection.

Detailed Description

HID Collection

Field Documentation

◆ page

uint16_t page

The usage page this collection refers to (eg HID_PAGE_GENERIC_DESKTOP).

◆ usage

uint16_t usage

The usage within the usage page (eg HID_DESKTOP_MOUSE).

◆ flags

uint32_t flags

The main item flags for this collection (eg HID_MAIN_COLLECTION_APPLICATION).

◆ start

uint32_t start

The first byte of this collection in the report descriptor.

◆ reports

HID_REPORT* reports

The list of reports contained in this collection.

◆ reportcount

uint32_t reportcount

The number of reports contained in this collection.

◆ collections

HID_COLLECTION* collections

The list of collections contained in this collection.

◆ collectioncount

uint32_t collectioncount

The number of collections contained in this collection.

◆ parent

HID_COLLECTION* parent

The parent collection or nil if this is a top level collection.

◆ device

HID_DEVICE* device

The device this collection belongs to.

◆ consumer

HID_CONSUMER* consumer

The consumer which is bound to this collection (or nil if not bound).

◆ privatedata

void* privatedata

Private data for the consumer of this collection.


The documentation for this struct was generated from the following file: