3.2.4.21 TPL_INTERFACE_CLASS_SUBCLASS_PROTOCOL Macro

C

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

Summary

Attach client driver to interface based on Class, Subclass and Protocol.

Description

This macro allows the application to specify a TPL table entry to attach a client driver to an interface when the class, subclass and protocol code 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.