USB HID generic descriptors

nRF5 SDK v15.0.0

nRF52840 only: Module with descriptors used by the HID generic class. More...

Macros

#define APP_USBD_HID_GENERIC_INTERFACE_DSC (interface_number,endpoints_num,subclass,protocol)
Initializer of interface descriptor for HID generic class. More...
#define APP_USBD_HID_GENERIC_HID_DSC (...) APP_USBD_HID_HID_DSC (__VA_ARGS__)
Initializer of HID descriptor for HID generic class. More...
#define APP_USBD_HID_GENERIC_EP_DSC (endpoint) APP_USBD_HID_EP_DSC (endpoint, NRF_DRV_USBD_EPSIZE , 1)
Initializer of endpoint descriptor for HID generic class. More...

Detailed Description

nRF52840 only: Module with descriptors used by the HID generic class.

Macro Definition Documentation

#define APP_USBD_HID_GENERIC_EP_DSC ( endpoint ) APP_USBD_HID_EP_DSC (endpoint, NRF_DRV_USBD_EPSIZE , 1)

Initializer of endpoint descriptor for HID generic class.

Parameters
endpoint Endpoint number.
#define APP_USBD_HID_GENERIC_HID_DSC ( ... ) APP_USBD_HID_HID_DSC (__VA_ARGS__)

Initializer of HID descriptor for HID generic class.

Parameters
... Report descriptor item.
#define APP_USBD_HID_GENERIC_INTERFACE_DSC ( interface_number,
endpoints_num,
subclass,
protocol
)
Value:
APP_USBD_HID_INTERFACE_DSC (interface_number, \
endpoints_num, \
subclass, \
protocol) \

Initializer of interface descriptor for HID generic class.

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 .