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_MAKE (major, minor) 0x##minor, 0x##major |
|
Helper macro for HID BCD release.
More...
|
|
| #define | APP_USBD_HID_BCD_V1_11 APP_USBD_HID_BCD_MAKE (1, 11) |
|
HID 1.11 BCD value definition.
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_MAKE | ( | major, | |
| minor | |||
| ) | 0x##minor, 0x##major |
Helper macro for HID BCD release.
- Parameters
-
major Hid release number major minor Hid release number minor
| #define APP_USBD_HID_BCD_V1_11 APP_USBD_HID_BCD_MAKE (1, 11) |
HID 1.11 BCD value definition.
| #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 protocol types defined by specification.
HID country code ID
Look into app_usbd_hid_descriptor_t::bCountryCode
HID descriptor types.
HID descriptor types.
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