nRF5 SDK v17.1.0
Macros
USB MSC descriptors

nRF52840 only: Descriptors for the USB MSC class. More...

Macros

#define APP_USBD_MSC_INTERFACE_DSC(interface_number, subclass, protocol)
 Initializer of interface descriptor for MSC class. More...
 
#define APP_USBD_MSC_EP_DSC(endpoint_in, endpoint_out, ep_size)
 Initializer of endpoint descriptors for MSC class. More...
 

Detailed Description

nRF52840 only: Descriptors for the USB MSC class.

Macro Definition Documentation

#define APP_USBD_MSC_EP_DSC (   endpoint_in,
  endpoint_out,
  ep_size 
)
Value:
/*.bLength = */ sizeof(app_usbd_descriptor_ep_t), \
/*.bDescriptorType = */ APP_USBD_DESCRIPTOR_ENDPOINT, \
/*.bEndpointAddress = */ endpoint_in, \
/*.bmAttributes = */ APP_USBD_DESCRIPTOR_EP_ATTR_TYPE_BULK, \
/*.wMaxPacketSize = */ APP_USBD_U16_TO_RAW_DSC(ep_size), \
/*.bInterval = */ 0, \
/*.bLength = */ sizeof(app_usbd_descriptor_ep_t), \
/*.bDescriptorType = */ APP_USBD_DESCRIPTOR_ENDPOINT, \
/*.bEndpointAddress = */ endpoint_out, \
/*.bmAttributes = */ APP_USBD_DESCRIPTOR_EP_ATTR_TYPE_BULK, \
/*.wMaxPacketSize = */ APP_USBD_U16_TO_RAW_DSC(ep_size), \
/*.bInterval = */ 0, \

Initializer of endpoint descriptors for MSC class.

Parameters
endpoint_inIN endpoint.
endpoint_outOUT endpoint.
ep_sizeEndpoint size.
#define APP_USBD_MSC_INTERFACE_DSC (   interface_number,
  subclass,
  protocol 
)
Value:
/*.bLength = */ sizeof(app_usbd_descriptor_iface_t), \
/*.bDescriptorType = */ APP_USBD_DESCRIPTOR_INTERFACE, \
/*.bInterfaceNumber = */ interface_number, \
/*.bAlternateSetting = */ 0x00, \
/*.bNumEndpoints = */ 2, \
/*.bInterfaceClass = */ APP_USBD_MSC_CLASS, \
/*.bInterfaceSubClass = */ subclass, \
/*.bInterfaceProtocol = */ protocol, \
/*.iInterface = 0, */ 0x00, \

Initializer of interface descriptor for MSC class.

Parameters
interface_numberInterface number.
subclassSubclass, app_usbd_msc_subclass_t
protocolProtocol, app_usbd_msc_protocol_t

Documentation feedback | Developer Zone | Subscribe | Updated