Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To change XferSize in C++, the method

Code Block
languagecpp
BulkEndPoint->SetXferSize(DesiredValue);

shall be used. Cypress sets DesiredValue to 4,096 bytes by default. This default value is not documented in the CyAPI.lib manual (pag 62 of CyAPI.pdf), but it has been retrieved by using the following C++ instructions:

Code Block
languagecpp
int XferSizeReadValue = BulkEndPoint->GetXferSize();

...


cout<< "XferSizeReadValue" << XferSizeReadValue <<endl;
Scroll Title
titledata throughput as a function of XferSize given PacketSize = 102,400 bytes

XferSize
(bytes)

Throughput
(Mbyte/s)

Data throughput [Mbyte/s] as a function of XferSize [byte]
given PacketSize = 102,400 bytes.

PacketSize = 102,400
(bytes)

4,096 (1)

15.6

8,192

20.4

16,384

26.3

32,768

30.2

65,536

34.1

131,072

36.2

262,144

36.7


...

Scroll Title
titledata throughput as a function of PacketSize given XferSize = 102,400 bytes.

Packet Size
(bytes)

Throughput
(Mbyte/s)

Data throughput [Mbyte/s] as a function of PacketSize [byte]
given XferSize = 102,400 bytes
XferSize = 131,072
(Bytes)

512

2.32

1,024

4.25

2,048

7.65

4,096

15.22

8,192

20.35

16,384

25.45

32,768

31.05

65,536

35.34

131,072

37.01

...

Conclusion

If a higher throughput is desired,

...