USER_USB_INSTANCE_T m2m_hw_usb_get_instance (M2M_USB_CH channel)
Description: the function gets the USB instance of the selected USB channel.
Parameters:
channel:
USB channel
Return
value:
refer to
USER_USB_INSTANCE_T enum
NOTE: referring M2M_USB_CH enum, if you use:
• USB_CH_NONE or USB_CH_AUTO, the function returns the first free instance, if any is available.
• USB_CH_DEFAULT, the function returns always USER_USB_INSTANCE_0.