3.2.4.23 TPL_INTERFACE_CLASS Macro
C
#define TPL_INTERFACE_CLASS(classCode, initData, driver)\ {\ .id.cl_sc_p = { (classCode), (0xFF), (0xFF) },\ .pidMask = 0xFFFF,\ .tplFlags.driverType = (uint8_t)(TPL_FLAG_CLASS_SUBCLASS_PROTOCOL),\ .tplFlags.ignoreClass = false,\ .tplFlags.ignoreSubClass = true,\ .tplFlags.ignoreProtocol = true,\ .hostClientDriverInitData = initData,\ .hostClientDriver = driver\ }
Summary
Attach client driver based on Class only.
Description
This macro allows the application to specify a TPL table entry to attach a client driver when the class matches the parameter specified in the entry. The subclass and the protocol code field are ignored.
Remarks
This is a helper macro only. It sets up the TPL entry fields to implement the specified matching criteria.