3.2.4.26 TPL_DEVICE_VID_PID_MASKED Macro

C

#define TPL_DEVICE_VID_PID_MASKED(vid, pid, mask, initData, driver)\
{\
    .id.vid_pid = { vid, pid },\
    .pidMask = mask,\
    .tplFlags.driverType = (uint8_t)(TPL_FLAG_VID_PID),\
    .tplFlags.pidMasked = 1,\
    .tplFlags.ignoreVIDPID = 0,\
    .hostClientDriverInitData = initData,\
    .hostClientDriver = driver\
}

Summary

Attach client driver to interface based on VID and a masked PID.

Description

This macro allows the application to specify a TPL table entry to attach a client driver to an device when the VID and PID of the device (after the specified PID mask is applied) match the parameters specified in the entry.

Remarks

This is a helper macro only. It sets up the TPL entry fields to implement the specified matching criteria.