Improvements to the USB API
Andrew Hodgkinson (6) 465 posts |
This topic has been imported from the old forum. Due to its use of fixed format text, you may need to make your browser view wider in order to see posts with the correct layout. |
James Peacock (34) 19 posts |
The biggest problem I've come accross is the lack of a proper API to request a chunk of data of unknown size, which is sent as multiple packets over a bulk pipe, as used in many USB protocols (PTP, Ethernet for start). This can only be done in a slightly subtle way and the size of the fetched data can only be read from the USBDriver's internal workspace, which is unsatisfactory. Additionally, is is quite hard work to use the present API for background modules, like DCI drivers, as getting fast notification of an empty TX buffer is not easy. The recommended method of using Buffer_LinkDevice doesn't work as it appears that something is already linked (the USBDriver?) and won't release it. |