![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <hid.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this HID. | |
| uint32_t | hidid |
| Unique Id of this HID in the HID device table. | |
| uint32_t | hidstate |
| HID device state (eg HID_STATE_ATTACHED). | |
| HID_CONSUMER * | consumer |
| The consumer which is bound to this device (or nil if not bound). | |
| hid_device_get_idle_proc | devicegetidle |
| A device specific GetIdle method (If supported by provider). | |
| hid_device_set_idle_proc | devicesetidle |
| A device specific SetIdle method (If supported by provider). | |
| hid_device_get_report_proc | devicegetreport |
| A device specific GetReport method (If supported by provider). | |
| hid_device_set_report_proc | devicesetreport |
| A device specific SetReport method (If supported by provider). | |
| hid_device_allocate_report_proc | deviceallocatereport |
| A device specific AllocateReport method (If supported by provider). | |
| hid_device_release_report_proc | devicereleasereport |
| A device specific ReleaseReport method (If supported by provider). | |
| hid_device_submit_report_proc | devicesubmitreport |
| A device specific SubmitReport method (If supported by provider). | |
| hid_device_cancel_report_proc | devicecancelreport |
| A device specific CancelReport method (If supported by provider). | |
| hid_device_get_protocol_proc | devicegetprotocol |
| A device specific GetProtocol method (If supported by provider). | |
| hid_device_set_protocol_proc | devicesetprotocol |
| A device specific SetProtocol method (If supported by provider). | |
| hid_device_get_interval_proc | devicegetinterval |
| A device specific GetInterval method (If supported by provider). | |
| hid_device_set_interval_proc | devicesetinterval |
| A device specific SetInterval method (If supported by provider). | |
| hid_device_get_report_descriptor_proc | devicegetreportdescriptor |
| A device specific GetReportDescriptor method (If supported by provider). | |
| hid_device_get_physical_descriptor_set0_proc | devicegetphysicaldescriptorset0 |
| A device specific GetPhysicalDescriptorSet0 method (If supported by provider). | |
| hid_device_get_physical_descriptor_set_proc | devicegetphysicaldescriptorset |
| A device specific GetPhysicalDescriptorSet method (If supported by provider). | |
| MUTEX_HANDLE | lock |
| HID device lock. | |
| void * | privatedata |
| Private data for the consumer of this HID device (If applicable). | |
| HID_COLLECTION * | collections |
| The parsed report descriptor with collections, reports and usages. | |
| uint32_t | collectioncount |
| The number of top level collections contained in the report descriptor. | |
| HID_REPORT_DESCRIPTOR * | descriptor |
| The raw report descriptor obtained from the device. | |
| uint32_t | descriptorsize |
| The size of the data pointed to by Descriptor. | |
| uint32_t | receivecount |
| uint32_t | receiveerrors |
| HID_DEVICE * | prev |
| Previous entry in Device table. | |
| HID_DEVICE * | next |
| Next entry in Device table. | |
| DEVICE device |
The Device entry for this HID.
| uint32_t hidid |
Unique Id of this HID in the HID device table.
| uint32_t hidstate |
HID device state (eg HID_STATE_ATTACHED).
| HID_CONSUMER* consumer |
The consumer which is bound to this device (or nil if not bound).
| hid_device_get_idle_proc devicegetidle |
A device specific GetIdle method (If supported by provider).
| hid_device_set_idle_proc devicesetidle |
A device specific SetIdle method (If supported by provider).
| hid_device_get_report_proc devicegetreport |
A device specific GetReport method (If supported by provider).
| hid_device_set_report_proc devicesetreport |
A device specific SetReport method (If supported by provider).
| hid_device_allocate_report_proc deviceallocatereport |
A device specific AllocateReport method (If supported by provider).
| hid_device_release_report_proc devicereleasereport |
A device specific ReleaseReport method (If supported by provider).
| hid_device_submit_report_proc devicesubmitreport |
A device specific SubmitReport method (If supported by provider).
| hid_device_cancel_report_proc devicecancelreport |
A device specific CancelReport method (If supported by provider).
| hid_device_get_protocol_proc devicegetprotocol |
A device specific GetProtocol method (If supported by provider).
| hid_device_set_protocol_proc devicesetprotocol |
A device specific SetProtocol method (If supported by provider).
| hid_device_get_interval_proc devicegetinterval |
A device specific GetInterval method (If supported by provider).
| hid_device_set_interval_proc devicesetinterval |
A device specific SetInterval method (If supported by provider).
| hid_device_get_report_descriptor_proc devicegetreportdescriptor |
A device specific GetReportDescriptor method (If supported by provider).
| hid_device_get_physical_descriptor_set0_proc devicegetphysicaldescriptorset0 |
A device specific GetPhysicalDescriptorSet0 method (If supported by provider).
| hid_device_get_physical_descriptor_set_proc devicegetphysicaldescriptorset |
A device specific GetPhysicalDescriptorSet method (If supported by provider).
| MUTEX_HANDLE lock |
HID device lock.
| void* privatedata |
Private data for the consumer of this HID device (If applicable).
| HID_COLLECTION* collections |
The parsed report descriptor with collections, reports and usages.
| uint32_t collectioncount |
The number of top level collections contained in the report descriptor.
| HID_REPORT_DESCRIPTOR* descriptor |
The raw report descriptor obtained from the device.
| uint32_t descriptorsize |
The size of the data pointed to by Descriptor.
| uint32_t receivecount |
| uint32_t receiveerrors |
| HID_DEVICE* prev |
Previous entry in Device table.
| HID_DEVICE* next |
Next entry in Device table.