Microchip® Advanced Software Framework

Use USB Strings

In this use case, the usual USB strings are added in the USB device.

Setup Steps

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

Usage Steps

Example Code

Content of conf_usb.h:

#define USB_DEVICE_MANUFACTURE_NAME "Manufacture name"
#define USB_DEVICE_PRODUCT_NAME "Product name"
#define USB_DEVICE_SERIAL_NAME "12...EF"

Workflow

  1. Ensure that conf_usb.h is available and contains the following parameters required to enable different USB strings:
    // Static ASCII name for the manufacture
    #define USB_DEVICE_MANUFACTURE_NAME "Manufacture name"
    // Static ASCII name for the product
    #define USB_DEVICE_PRODUCT_NAME "Product name"
    // Static ASCII name to enable and set a serial number
    #define USB_DEVICE_SERIAL_NAME "12...EF"