nRF5 SDK v17.1.0
Macros
USB HID generic descriptors

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
endpointEndpoint 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_numberInterface number.
endpoints_numNumber of endpoints.
subclassSubclass type app_usbd_hid_subclass_t.
protocolProtocol type app_usbd_hid_protocol_t.

Documentation feedback | Developer Zone | Subscribe | Updated