I2C_HW.c have some confuse.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 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?

0 Likes
4 Replies
Anonymous
Not applicable

 Hi,

   

 

   

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

   

 

   

Regards,

   

Gayathri

0 Likes
Anonymous
Not applicable

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. 

0 Likes
Anonymous
Not applicable

 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

0 Likes
Anonymous
Not applicable

 ok thanks

0 Likes