Wouldn't it make sense to have a conversion function in usb.c, something like:
It hasn't been necessary so far, which is why I didn't bother
defining one last summer when this came up.  There aren't many
ISO devices/driver; and ones using interrupt transfers can
just as easily call usb_fill_int_urb() to address this issue.

That is, if they don't do the shift themselves, which lets
them deal better with periods like 2 uframes (1/4 msec).


inline int bInterval_to_ms(unsigned char bInterval, int speed, int isoc)
{
  if (USB_SPEED_HIGH == speed)
    return (2^(bInterval-1)) * 125;
  else if (isoc)
    return (2^(bInterval-1));
  else
    return bInterval;
}





-------------------------------------------------------
This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to