Microchip® Advanced Software Framework

udi_vendor_conf.h File Reference

Default Vendor class configuration for a USB Device with a single interface.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include "conf_usb.h"
#include "udi_vendor.h"

Macros

#define UDI_VENDOR_EP_BULK_IN   (1 | USB_EP_DIR_IN)
 
#define UDI_VENDOR_EP_BULK_OUT   (2 | USB_EP_DIR_OUT)
 
#define UDI_VENDOR_EP_INTERRUPT_IN   (3 | USB_EP_DIR_IN)
 Endpoint numbers used by vendor interface. More...
 
#define UDI_VENDOR_EP_INTERRUPT_OUT   (6 | USB_EP_DIR_OUT)
 
#define UDI_VENDOR_EP_ISO_IN   (4 | USB_EP_DIR_IN)
 
#define UDI_VENDOR_EP_ISO_OUT   (5 | USB_EP_DIR_OUT)
 
#define UDI_VENDOR_IFACE_NUMBER   0
 Interface number is 0 because it is the unique interface. More...
 
#define USB_DEVICE_EP_CTRL_SIZE   64
 Control endpoint size. More...
 
UDD Configuration
#define UDI_VENDOR_EP_NB_INT   ((UDI_VENDOR_EPS_SIZE_INT_FS)?2:0)
 Maximum 6 endpoints used by vendor interface. More...
 
#define UDI_VENDOR_EP_NB_BULK   ((UDI_VENDOR_EPS_SIZE_BULK_FS)?2:0)
 
#define UDI_VENDOR_EP_NB_ISO   ((UDI_VENDOR_EPS_SIZE_ISO_FS)?2:0)
 
#define USB_DEVICE_MAX_EP   (UDI_VENDOR_EP_NB_INT+UDI_VENDOR_EP_NB_BULK+UDI_VENDOR_EP_NB_ISO)