You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm implementing a host on TinyUSB, which should only work with devices with a specific VID/PID. Is there any way to filter connections and not initialize the device if the VID/PID does not match the expected one? I suppose it would be great to have some kind of callback like bool tuh_pre_mount_cb(...) where I could get information about the VID/PID, and then return true if I want to continue the connection, and false if I refuse.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello. I'm implementing a host on TinyUSB, which should only work with devices with a specific VID/PID. Is there any way to filter connections and not initialize the device if the VID/PID does not match the expected one? I suppose it would be great to have some kind of callback like
bool tuh_pre_mount_cb(...)
where I could get information about the VID/PID, and then return true if I want to continue the connection, and false if I refuse.How can I make something like this?
Beta Was this translation helpful? Give feedback.
All reactions