Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Relationship between payload and maxpacket on USB3.0.

Status
Not open for further replies.

coshy

Member level 3
Joined
Mar 28, 2016
Messages
59
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
464
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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top