- handle:usbHidConfig(table)
- table = handle:usbHidConfig()
SYNOPSIS
DESCRIPTION
This document describes the command syntax and parameters. Please see
the introduction to USB HID support
for a detailed explanation.
The command is used to set and query the HID specific configuration of the USB device port in HID device mode. The first form sets, the second form queries the current configuration.
The configuration data is stored in a table using the following data.
insize | Size of the interrupt in endpoint. Maximum and default value is 64. |
outsize | Size of the interrupt out endpoint. Maximum and default value is 64. |
interval | Polling interval in milliseconds. |
packetmode | Boolean flag. Enables a Core4 SDK specific packet wrapping mode. |
report | Contents of the HID report descriptor. A string containing raw the binary representation of the descriptor. |
RETURN VALUE
On succes, the query form returns a table, the set form returns true. On error, returns
nil. In case of an error, the error can be retrieved using rawio:lastError().