3.2.4.22 TPL_INTERFACE_CLASS_SUBCLASS Macro

C

#define TPL_INTERFACE_CLASS_SUBCLASS(classCode, subClassCode, initData, driver)\
{\
    .id.cl_sc_p = { classCode, subClassCode, 0xFF },\
    .pidMask = 0xFFFF,\
    .tplFlags.driverType = (uint8_t)(TPL_FLAG_CLASS_SUBCLASS_PROTOCOL),\
    .tplFlags.ignoreClass = false,\
    .tplFlags.ignoreSubClass = false,\
    .tplFlags.ignoreProtocol = true,\
    .hostClientDriverInitData = initData,\
    .hostClientDriver = driver\
}

Summary

Attach client driver based on Class and Subclass only.

Description

This macro allows the application to specify a TPL table entry to attach a client driver when the class, subclass match the parameters specified in the entry. The protocol code field is ignored.

Remarks

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