// some other stuff coming here we don't need
};
-/*
+/**
Check for pending async urbs
\internal
*/
return pending;
}
-/*
- FIXME: Gerd, what does this function do exactly?
+/**
+ Wait until one or more async URBs are completed by the kernel and mark their
+ positions in the async-buffer as unused
+
+ \param ftdi pointer to ftdi_context
+ \param wait_for_more if != 0 wait for more than one write to complete
+ \param timeout_msec max milliseconds to wait
+
\internal
*/
static void _usb_async_cleanup(struct ftdi_context *ftdi, int wait_for_more, int timeout_msec)
}
/**
- Wait until at least one async write is complete
+ Wait until one or more async URBs are completed by the kernel and mark their
+ positions in the async-buffer as unused.
\param ftdi pointer to ftdi_context
\param wait_for_more if != 0 wait for more than one write to complete (until write timeout)