nRF52840 only: Module with types and definitions used by HID modules. More...
Data Structures |
|
| union | app_usbd_hid_descriptor_t |
|
HID descriptor, binary layout.
More...
|
|
Macros |
|
| #define | APP_USBD_HID_CLASS 0x03 |
|
HID class definition in interface descriptor.
More...
|
|
| #define | APP_USBD_HID_REPORT_ITEM (size) APP_USBD_HID_DESCRIPTOR_REPORT , ((size) & 0xFF), ((size) / 256) |
|
HID report descriptor entry at the end of HID descriptor.
More...
|
|
| #define | APP_USBD_HID_PHYSICAL_ITEM (size) APP_USBD_HID_DESCRIPTOR_PHYSICAL , ((size) & 0xFF), ((size) / 256) |
|
HID physical descriptor entry at the end of HID descriptor.
More...
|
|
| #define | APP_USBD_HID_BCD_VER APP_USBD_BCD_VER_MAKE (1, 11) |
|
Hid version BCD value definition.
More...
|
|
| #define | APP_USBD_HID_BCD_VER_BYTES LSB_16( APP_USBD_HID_BCD_VER ), MSB_16( APP_USBD_HID_BCD_VER ) |
|
HID version BCD value definition distributed into bytes.
More...
|
|
| #define | APP_USBD_HID_INTERFACE_DSC (interface_number, endpoints_num, subclass, protocol) |
|
Initializer of interface descriptor for HID classes.
More...
|
|
| #define | APP_USBD_HID_HID_DSC (...) |
|
Initializer of HID descriptor for HID classes.
More...
|
|
| #define | APP_USBD_HID_EP_DSC (endpoint, ep_size, ep_interval) |
|
Initializer of endpoint descriptor for HID classes.
More...
|
|
Detailed Description
nRF52840 only: Module with types and definitions used by HID modules.
Macro Definition Documentation
| #define APP_USBD_HID_BCD_VER APP_USBD_BCD_VER_MAKE (1, 11) |
Hid version BCD value definition.
The version of the HID descriptors used.
| #define APP_USBD_HID_BCD_VER_BYTES LSB_16( APP_USBD_HID_BCD_VER ), MSB_16( APP_USBD_HID_BCD_VER ) |
HID version BCD value definition distributed into bytes.
This is a value written directly into app_usbd_hid_descriptor_t::bcdHID .
- See Also
- APP_USBD_HID_BCD_VER
| #define APP_USBD_HID_CLASS 0x03 |
HID class definition in interface descriptor.
| #define APP_USBD_HID_EP_DSC | ( | endpoint, | |
| ep_size, | |||
| ep_interval | |||
| ) |
Initializer of endpoint descriptor for HID classes.
- Parameters
-
endpoint Endpoint number. ep_size Endpoint size. ep_interval Endpoint interval (milliseconds).
| #define APP_USBD_HID_HID_DSC | ( | ... | ) |
Initializer of HID descriptor for HID classes.
- Parameters
-
... Report/physical item list.
| #define APP_USBD_HID_INTERFACE_DSC | ( | interface_number, | |
| endpoints_num, | |||
| subclass, | |||
| protocol | |||
| ) |
Initializer of interface descriptor for HID classes.
- Parameters
-
interface_number Interface number. endpoints_num Number of endpoints. subclass Subclass type app_usbd_hid_subclass_t . protocol Protocol type app_usbd_hid_protocol_t .
| #define APP_USBD_HID_PHYSICAL_ITEM | ( | size | ) | APP_USBD_HID_DESCRIPTOR_PHYSICAL , ((size) & 0xFF), ((size) / 256) |
HID physical descriptor entry at the end of HID descriptor.
- Parameters
-
size Physical descriptor size.
| #define APP_USBD_HID_REPORT_ITEM | ( | size | ) | APP_USBD_HID_DESCRIPTOR_REPORT , ((size) & 0xFF), ((size) / 256) |
HID report descriptor entry at the end of HID descriptor.
- Parameters
-
size Report descriptor size.
Enumeration Type Documentation
HID country code ID.
Look into app_usbd_hid_descriptor_t::bCountryCode .
HID descriptor types.
HID protocol types defined by specification.
Value need to be filled in interface descriptor. app_usbd_descriptor_iface_t::bInterfaceProtocol
| enum app_usbd_hid_req_t |
HID requests defined by specification.
HID subclass definition.
- See Also
- HID 1.11 specification: Chapter 4.2 Subclass. app_usbd_descriptor_iface_t::bInterfaceSubClass