M2M_API_RESULT m2m_hw_usb_wait_attach_timeout(UINT32 timeout)
Description: the function sets the USB port in blocking on mode, and waits the USB cable attach event for an interval of time equal to timeout. The programmer, before proceeding, can use this function to wait the USB cable attach for a defined interval of time.
Parameters:
timeout:
expressed in ms, 1 ÷ 100 à 100ms;
101 ÷ 200 à 200ms and so on.
If set to 0, the function exits immediately if the USB cable is not plugged in.
Return
value:
refer to
M2M_API_RESULT enum