nRF52840 only: Module with types, definitions, and API used by the HID mouse class.
More...
nRF52840 only: Module with types, definitions, and API used by the HID mouse class.
#define APP_USBD_HID_MOUSE_EP_DSC |
( |
|
endpoint_number | ) |
APP_USBD_HID_EP_DSC(endpoint_number, 8, 1) |
Initializer of endpoint descriptor for HID mouse class.
- Parameters
-
endpoint_number | Endpoint number. |
Initializer of HID descriptor for HID mouse class.
- Parameters
-
#define APP_USBD_HID_MOUSE_INTERFACE_DSC |
( |
|
interface_number | ) |
|
Value:
Initializer of interface descriptor for HID mouse class.
- Parameters
-
interface_number | Interface number. |
#define APP_USBD_HID_MOUSE_REPORT_DSC_BUTTON |
( |
|
bcnt | ) |
|
Value:{ \
0x05, 0x01, \
0x09, 0x02, \
0xA1, 0x01, \
0x09, 0x01, \
0xA1, 0x00, \
0x05, 0x09, \
0x19, 0x01, \
0x29, bcnt, \
0x15, 0x00, \
0x25, 0x01, \
0x75, 0x01, \
0x95, bcnt, \
0x81, 0x02, \
0x75, (8-(bcnt)), \
0x95, 0x01, \
0x81, 0x01, \
0x05, 0x01, \
0x09, 0x30, \
0x09, 0x31, \
0x09, 0x38, \
0x15, 0x81, \
0x25, 0x7F, \
0x75, 0x08, \
0x95, 0x03, \
0x81, 0x06, \
0xC0, \
0xC0, \
}
Example of USB HID mouse report descriptor for n button mouse.
- Parameters
-
bcnt | Button count. Allowed values from 1 to 8. |