Microchip® Advanced Software Framework

Multiple classes support

In this use case, the USB host is used to support several USB classes.

Setup steps

Prior to implement this use case, be sure to have already apply the UDI module "basic use case".

Usage steps

Example code

Content of conf_usb_host.h:

#define USB_HOST_UHI UHI_HID_MOUSE, UHI_MSC, UHI_CDC

Workflow

  1. Ensure that conf_usb_host.h is available and contains the following parameters:
    • #define USB_HOST_UHI UHI_HID_MOUSE, UHI_MSC, UHI_CDC
      Note
      USB_HOST_UHI defines the list of UHI supported by USB host. Here, you must add all classes that you want to support.