USB MSC descriptors

nRF5 SDK v12.3.0

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_in IN endpoint
endpoint_out OUT endpoint
ep_size Endpoint 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_number Interface number
subclass Subclass, app_usbd_msc_subclass_t
protocol Protocol, app_usbd_msc_protocol_t