3.6.2.1.1 USB
USB can enumerate in two interfaces, either CDC or CAPBridge. The descriptors are stored in two different files and depend on the 4-way switch status: switch mode 0-12 for CDC and CAP Bridge select switch mode 14 (refer to Mode Selection table for more information).
File usb_device_init_data_cdc.c
contains the descriptors for CDC
Interface and file usb_device_init_data_capBridge
contains the
descriptor details for CAP Bridge interface.
Use the standard Harmony 3 USB CDC drivers for CDC configuration and USB enumeration. For
CapBridge configuration, vendor class is used and vendor/product IDs are hardcoded to
match the CAP1xxx PC software. The code related to USB CDC and CAPBridge is present in
usbApp.c
file.