kuroda_shinsuke_em | 26 Jul 2012 10:00
Picon
Favicon

About API design of libusbK

Hi, 

I have a question about API design of the isochronous transfer.
It is difference with the API design in Linux.

<<Case of Linux>>
  [Driver]                               [USB Core/device]
    Thread_A
     |                                           |
     |-usb_submit_urb(##,                        |
     |                callback_submit_comp,      |
     |                ##);---------------------->|
     |

     /* When a request is completed, called from a USB core.*/
     |-callback_submit_comp <-------callback-----|
     |
     |etc..

<<Case of libusbK>>
  #CASE-1 --serial--
  [Driver]                               [USB Core/device]
    Thread_A
     |                                           |
     |-UsbK_IsoReadPipe();---------------------->|
     |                                           |
     | /* wait for transfer completion */        |
     |-OvlK_Wait();----------------------------->|
     |

(Continue reading)

Xiaofan Chen | 27 Jul 2012 04:32
Picon

Re: About API design of libusbK

On Thu, Jul 26, 2012 at 4:00 PM,  <kuroda_shinsuke_em <at> yahoo.co.jp> wrote:
> Hi,
>
> I have a question about API design of the isochronous transfer.
> It is difference with the API design in Linux.
>
> <<Case of Linux>>
>   [Driver]                               [USB Core/device]
>     Thread_A
>      |                                           |
>      |-usb_submit_urb(##,                        |
>      |                callback_submit_comp,      |
>      |                ##);---------------------->|
>      |
>
>
>      /* When a request is completed, called from a USB core.*/
>      |-callback_submit_comp <-------callback-----|
>      |
>      |etc..
>
>
> <<Case of libusbK>>
>   #CASE-1 --serial--
>   [Driver]                               [USB Core/device]
>     Thread_A
>      |                                           |
>      |-UsbK_IsoReadPipe();---------------------->|
>      |                                           |
>      | /* wait for transfer completion */        |
(Continue reading)


Gmane