This section describes how the Human Interface Device (HID) interfaces are configured. It is assumed that the reader is familiar with USB HID and the Bluetooth low energy equivalent - HID over GATT (HoG). For more information about USB HID, visit USB.org's developer section. To learn more about the HID over GATT Profile, see the Bluetooth SIG's adopted specifications.
Smart Remote has one HoG Service used for audio, touchpad, keyboard, and gyro operations. The HID descriptor, also referred to as Report Map, is detailed below and can be configured in the file m_coms.c
.
The above descriptors specify the following reports.
Byte | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|
0 | X movement delta [0:7] | |||||||
1 | Y movement delta [0:3] | X movement delta [8:11] | ||||||
2 | Y movement delta [4:11] |
Byte | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|
0 | Button 8 | Button 7 | Button 6 | Button 5 | Button 4 | Button 3 | Button 2 | Button 1 |
Byte | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|
0 | Wheel | |||||||
1 | AC Pan |
Byte | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|
0 | Key code [0:7] | |||||||
1 | Key code [0:3] | Key code [8:11] | ||||||
2 | Key code [4:11] |
Byte | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|
0 | Key code | |||||||
1 | Key code | |||||||
2 | Key code |
Byte | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|
0 | Encoded audio | |||||||
1 | Encoded audio | |||||||
2 | Encoded audio | |||||||
3 | Encoded audio | |||||||
4 | Encoded audio | |||||||
5 | Encoded audio | |||||||
6 | Encoded audio | |||||||
7 | Encoded audio | |||||||
8 | Encoded audio | |||||||
9 | Encoded audio | |||||||
10 | Encoded audio | |||||||
11 | Encoded audio | |||||||
12 | Encoded audio | |||||||
13 | Encoded audio | |||||||
14 | Encoded audio | |||||||
15 | Encoded audio | |||||||
16 | Encoded audio | |||||||
17 | Encoded audio | |||||||
18 | Encoded audio | |||||||
19 | Encoded audio | |||||||
... | Encoded audio |
Byte | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|
0 | Command value |