USB Libraries Help > USB Host Libraries > USB MSD Host Client Driver Library > Using the Library > How the Library Works > MSD TPL Table Configuration
MPLAB Harmony USB Stack
MSD TPL Table Configuration

The Host Layer attaches the MSD Host Client Driver to a device when the class, subclass and protocol fields in the Interface Association Descriptor (IAD) or Interface descriptor match the entry in the TPL table. When specifying the entry for the MSD device, the driver interface must be set to USB_HOST_MSD_INTERFACE. This will attach the USB MSD Host Client Driver to the device when the USB Host matches the TPL entry to the device. The following code shows a TPL table design for matching MSD Devices. 

Example:  

/* This code shows an example TPL table entry for supporting a Mass
 * Storage Device */

const USB_HOST_TPL_ENTRY USBTPList[ 1 ] =
{
    TPL_INTERFACE_CLASS_SUBCLASS_PROTOCOL(USB_MSD_CLASS_CODE,
            USB_MSD_SUBCLASS_CODE_SCSI_TRANSPARENT_COMMAND_SET, USB_MSD_PROTOCOL, NULL,  USB_HOST_MSD_INTERFACE)
};