Implemented VIDPIDOK in PS4USB

This commit is contained in:
Kristian Lauszus 2014-07-01 13:17:56 +02:00
parent efeb80855e
commit 4a44c8f039

View file

@ -112,6 +112,18 @@ protected:
}; };
/**@}*/ /**@}*/
/** @name USBDeviceConfig implementation */
/**
* Used by the USB core to check what this driver support.
* @param vid The device's VID.
* @param pid The device's PID.
* @return Returns true if the device's VID and PID matches this driver.
*/
virtual boolean VIDPIDOK(uint16_t vid, uint16_t pid) {
return (vid == PS4_VID && pid == PS4_PID);
};
/**@}*/
private: private:
void (*pFuncOnInit)(void); // Pointer to function called in onInit() void (*pFuncOnInit)(void); // Pointer to function called in onInit()
}; };