Hi Group,
I'm trying to send data through a usb in endpoint to a host pc using a
linked list. I've been through spru511 backwards and forwards, and have
also looked at the csl source, and I'm still not clear on a couple of
points. It would save me a lot of experimentation if someone knew the answers.
Specifically:
1. There appear to be three places I can put the byte count - as a
postTransaction parameter, as the first word in the USB_DataStruct, or as the
first word in my data buffer. Do I put the same value in all three places?
2. The data buffer pointer in USB_DataStruct - does it point to the first word
(containing the byte count) or to the first word containing data?
Thanks, Don
c5509a usb csl
Started by ●October 8, 2007
Reply by ●October 8, 20072007-10-08
Don,
1. Byte count has to be in the postTransaction parameter. It's not
necessary to put the count as the first word of datastruct -- you
just leave a word space there and postTransaction will overwrite the
word with byte count.
2. It points to the byte count.
Good luck
Wei
--- In c..., donald@... wrote:
>
> Hi Group,
> I'm trying to send data through a usb in endpoint to a host pc
using a linked list. I've been through spru511 backwards and
forwards, and have also looked at the csl source, and I'm still not
clear on a couple of points. It would save me a lot of
experimentation if someone knew the answers. Specifically:
> 1. There appear to be three places I can put the byte count - as a
postTransaction parameter, as the first word in the USB_DataStruct,
or as the first word in my data buffer. Do I put the same value in
all three places?
> 2. The data buffer pointer in USB_DataStruct - does it point to the
first word (containing the byte count) or to the first word
containing data?
> Thanks, Don
>
1. Byte count has to be in the postTransaction parameter. It's not
necessary to put the count as the first word of datastruct -- you
just leave a word space there and postTransaction will overwrite the
word with byte count.
2. It points to the byte count.
Good luck
Wei
--- In c..., donald@... wrote:
>
> Hi Group,
> I'm trying to send data through a usb in endpoint to a host pc
using a linked list. I've been through spru511 backwards and
forwards, and have also looked at the csl source, and I'm still not
clear on a couple of points. It would save me a lot of
experimentation if someone knew the answers. Specifically:
> 1. There appear to be three places I can put the byte count - as a
postTransaction parameter, as the first word in the USB_DataStruct,
or as the first word in my data buffer. Do I put the same value in
all three places?
> 2. The data buffer pointer in USB_DataStruct - does it point to the
first word (containing the byte count) or to the first word
containing data?
> Thanks, Don
>