Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > I2C_HW.c have some confuse.

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



I2C_HW.c have some confuse.
Moderator:
RSKV

Post Reply
Follow this topic



I2C_HW.c have some confuse.

dv2 posted on 27 Dec 2012 5:12 PM PST
Top Contributor
113 Forum Posts

 Hi

In USBTV, i have confused in i2c_hw.c. 

I can see that sub_type variable is in DBG of I2CWrite function but (sub_type!=0) syntex is not existed in DBG. 

If i not use DBG, what have default value to sub_type variable?

Also , how should i understand this syntex?

 

Could you please let me know?




Re: I2C_HW.c have some confuse.

Gayathri posted on 08 Jan 2013 02:12 AM PST
Cypress Employee
428 Forum Posts

 Hi,

 

What did you mean by DBG? Are you referring to any particular example from Cypress? 

 

Regards,

Gayathri



Re: I2C_HW.c have some confuse.

dv2 posted on 08 Jan 2013 05:35 AM PST
Top Contributor
113 Forum Posts

The DBG is define. 

As you know, if you have that code, you already see it in code. 

So i thnk DBG is just for test not usually.

When i compiling to make hex file, DBG is must defined.

If DBG have not defined in code, this project is not make compiling. 



Re: I2C_HW.c have some confuse.

Gayathri posted on 09 Jan 2013 02:35 AM PST
Cypress Employee
428 Forum Posts

 Hi,

 

I believe you are referring to some particular example and the terms from teh same. I am not able to understand the same. Please create a tech support case, so that one of our engineers can take a look at the example and assist you through the same.

 

Regards,

Gayathri



Re: I2C_HW.c have some confuse.

dv2 posted on 09 Jan 2013 06:53 AM PST
Top Contributor
113 Forum Posts

 ok thanks






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