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
In the net_lwip_webserver example there is the following in usb_descriptors.c
// Configuration array: RNDIS and CDC-ECM// - Windows only works with RNDIS// - MacOS only works with CDC-ECM// - Linux will work on bothstaticuint8_tconst * const configuration_arr[2] =
{
#if CFG_TUD_ECM_RNDIS
[CONFIG_ID_RNDIS] = rndis_configuration,
[CONFIG_ID_ECM ] = ecm_configuration
#else
[CONFIG_ID_NCM ] = ncm_configuration
#endif
How can Windows, Linux, or MacOS select the right driver? For example if on Windows. RNDIS descriptor should be used whereas for MacOS CDC-ECM should be used.
Testing a device on both MacOS and Windows the correct descriptor is used, but I am unsure how TinyUSB was informed which descriptor to use.
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
-
In the net_lwip_webserver example there is the following in
usb_descriptors.c
How can Windows, Linux, or MacOS select the right driver? For example if on Windows.
RNDIS
descriptor should be used whereas for MacOSCDC-ECM
should be used.Testing a device on both MacOS and Windows the correct descriptor is used, but I am unsure how TinyUSB was informed which descriptor to use.
Beta Was this translation helpful? Give feedback.
All reactions