You are here

#define OUT_EP (0x02u) | Cypress Semiconductor

#define OUT_EP (0x02u)

Summary: 3 Replies, Latest post by mahmoud on 25 Mar 2013 04:43 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
user_255488079's picture
121 posts

in the USB bulk transfer example, what is meant by this command: #define OUT_EP      (0x02u)

does it mean to set an adress of 0x02 to the endpoint "OUT_EP"?

user_255488079's picture
121 posts

 Correction..... how did the end point get a number of 0x02 .... this endpoint 2 so is every endpoint point in the PSOC5 LP get an equivalent number?

user_119377051's picture
866 posts


Hi, Basically attribute of Endpoint is determine in the property
dialog of USB.
You know, Endpoint Descriptor in the Device Descriptor Tab that is define

Endpoint number to usage(OUT/IN).

Endpoint number can select 1 to 8 of Endpoints. And multiple selection also


E.g. one IN Endpoint and two OUT Endpoints. That is vender specific.
Simply, Someone decide Endpoint number on PSoC and also Host PC,

These are must be same number.

Or someone can check up Endpoint number and usage by function of CyUSB.dll.

Anyway, You want to refer OUT Endpoint number from enumulated symbols.

I was checked up USB header and USB_descr.c

but the number can not be refer by symbol. It is literal constants, I dont know
Therefore, OUT Endpoint number define by #define statement. I think so.


 Thank you, and Happy USB

user_255488079's picture
121 posts

 thanks :)

Log in to post new comments.