coshy
Member level 4
Hi.
Now I'm trying to implement the USB3.0 of the Cypress.
But actually, I can not sure about the relationship between data payload and maxpacket.
AS I know, the data payload has 1024 Byte times. and currently my maxpacket size is 16384.
<ENDPOINT>
Type="BULK"
Direction="IN"
Address="81h"
Attributes="02h"
MaxPktSize="16384"
DescriptorType="5"
DescriptorLength="7"
Interval="0"
<SUPER SPEED ENDPOINT COMPANION>
Type="SUPERSPEED_USB_ENDPOINT_COMPANION"
MaxBurst="15"
Attributes="00h"
BytesPerInterval="00h"
</ENDPOINT>
on this case,
Q1. What If I want to read the size of data 1035 then how to get the 1035 size of data? how to get the last 11byte?
XferData(buf, length) of the Cypress function does not support length such as 511 or 1023...,. the length always should be 1024 times.
Q2. Is there any relationship between data payload and maxpacket?
Actually I need 1592x1944 8bit image data, I'm not sure about how to set the MaxPktSize.
Now I'm trying to implement the USB3.0 of the Cypress.
But actually, I can not sure about the relationship between data payload and maxpacket.
AS I know, the data payload has 1024 Byte times. and currently my maxpacket size is 16384.
<ENDPOINT>
Type="BULK"
Direction="IN"
Address="81h"
Attributes="02h"
MaxPktSize="16384"
DescriptorType="5"
DescriptorLength="7"
Interval="0"
<SUPER SPEED ENDPOINT COMPANION>
Type="SUPERSPEED_USB_ENDPOINT_COMPANION"
MaxBurst="15"
Attributes="00h"
BytesPerInterval="00h"
</ENDPOINT>
on this case,
Q1. What If I want to read the size of data 1035 then how to get the 1035 size of data? how to get the last 11byte?
XferData(buf, length) of the Cypress function does not support length such as 511 or 1023...,. the length always should be 1024 times.
Q2. Is there any relationship between data payload and maxpacket?
Actually I need 1592x1944 8bit image data, I'm not sure about how to set the MaxPktSize.