Cypress Perform

Home > Support & Community     Bookmark and Share
Support & Community

Knowledge Base Article

Screamer application's x64 compatibility.

Last Updated: 09/05/2011

In the 'Screamer' application of CyUSB.NET, while creating 'OVERLAPPED structure mapping array' (ovlap) why fixed array size '20' is used? Is it compatible with x64 platform? (Screamer application statement :- oLaps[j] = new byte[20];)

While designing the 'Screamer application', only x86 (32 bit) platform is kept into consideration, so the 'hard-coded size of OVERLAPPED structure' : 20 is used.

But it is recommended that, users should not use this hard-coded value in their application. Rather they should use 'CyConst.OverlapSignalAllocSize'   OR  'CyUSBEndPoint.OverlapSignalAllocSize' in their applications. This helps in application compatibility for both x86 (23 bit) and x64 (64 bit) platforms.

The 'CyConst.OverlapSignalAllocSize' And 'CyUSBEndPoint.OverlapSignalAllocSize', both correctly interpret the OVERLAPPED structure size, which is 20 bytes when using x32 platform and 32 bytes when using x64 platform.   

Related Categories: USB Controllers

Provide feedback on this article

Did this article help you solve your problem?




Additional comments:

To protect your privacy, do not include contact information in your feedback.

Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 06/15/20
Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 06/15/20