USB Question

Hey all -

I have a question reguarding USB. I am working on a function driver, and am
in the process of setting up the Bulk pipes I will be using.Like most, I am
examining the sample code in the DDK and have come across the
MaximumTransferSize field of the USBD_PIPE_INFORMATION struct. From what i
can read, the default size of this field is 4K (Page Size), but you can set
it to your own value. The DDK example sets it to 256.

Here is my question:

  1. Are there any limits to the size you can set this to ?
  2. Is the optimal value for this what you *Think* the maximum transfer size
    will be.
  3. If an app sends more than this value, or a device sends more than this
    value, is it up to you to break the requst into chunks.
  4. Who selects this value for the IN pipe from the device ? I am assuming
    the host will set this value for the out pipe.

Thanks in advance !

-Chris

You can set it to a larger size. I think the max is 0xFFFFFFFF and default is
4k.

<< Hey all -

I have a question reguarding USB. I am working on a function driver, and am
in the process of setting up the Bulk pipes I will be using.Like most, I am
examining the sample code in the DDK and have come across the
MaximumTransferSize field of the USBD_PIPE_INFORMATION struct. From what i
can read, the default size of this field is 4K (Page Size), but you can set
it to your own value. The DDK example sets it to 256.

Here is my question:

  1. Are there any limits to the size you can set this to ?
  2. Is the optimal value for this what you *Think* the maximum transfer size
    will be.
  3. If an app sends more than this value, or a device sends more than this
    value, is it up to you to break the requst into chunks.
  4. Who selects this value for the IN pipe from the device ? I am assuming
    the host will set this value for the out pipe.

Thanks in advance !

-Chris
>>