Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > About the USB component's function setting in PSoC5

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



About the USB component's function setting in PSoC5
Moderator:
ANCY

Post Reply
Follow this topic



About the USB component's function setting in PSoC5

jacktan posted on 17 Feb 2012 6:19 PM PST
Top Contributor
26 Forum Posts

Hello:

I have same question about the USB function setting in my project ,and the details are as follow:

1.In my project, i want to use the USB component to communicate between my DVK and WIN7 PC,

    dunring the running time,the DVK sends message to PC,and then PC deals with message, after that

    PC display the result(such as plot point or line) in MS paint!

2.And the attached file describes the problem more detailed, and the project can plot line continually!

3.Thanks for you kindly reply!




Re: About the USB component's function setting in PSoC5

U2 posted on 19 Feb 2012 09:26 PM PST
Cypress Employee
589 Forum Posts

Hello there !

I took a look at your project. Before proceeding further. Are you trying to use PSoC as a Touch or pen like device ?



Re: About the USB component's function setting in PSoC5

U2 posted on 19 Feb 2012 09:49 PM PST
Cypress Employee
589 Forum Posts

 In HID descriptors, according to the HID usage table provided by USBIF, when the Physical maximum and Physical minimum are given by,

if  ((Physical Maximum == UNDEFINED) || (Physical Minimum == UNDEFINED)   || ((Physical Maximum == 0) && (Physical Minimum == 0))) 

 Physical Maximum  = Logical Maximum; 

 Physical Minimum = Logical Minimum; 

}

 

which implies that the physical maximum and physical minimum are same as your logical maximum and logical minimum.



Re: About the USB component's function setting in PSoC5

U2 posted on 20 Feb 2012 10:25 PM PST
Cypress Employee
589 Forum Posts

 Some more finding....

The report descriptor has a top-level collection with two embedded logical collections. Each one represents data that can be received from each contact detected. Note that the actual count usage is not in either logical collection. This report descriptor lets the device report all contact information (in this case, a maximum of two) in one packet.

 



Re: About the USB component's function setting in PSoC5

jacktan posted on 20 Feb 2012 08:06 PM PST
Top Contributor
26 Forum Posts

Thanks for you kindly reply!

This project wants to set the PSoC5 device as a touch or pen like device controller,and the device can draw lines in the paint automatically.

And in device class defination for HID device, it mentions the formula as you said, but how can i unserstand the RESOLUTION following: resolution=(logical maximum-logical minimum) / ((physical maximum-physical minimum) *(10uint exponent)).

As for the two logical collection,they do report the two touch point information on the PSoC system,but which confuses me in the project are "usage(in range) 09 32", which 32 present Z in usage table, and the following report count(6).

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20