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

cross mob
Anonymous
Not applicable

Hello,

I have the following line in the header file:

CYBIT Check_Mode;

Then it is used in the main program in the form of if(Check_Mode){...},

what value for Check_Mode will be used?

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Firstly, CYBIT is one of the defines among others which is used to support type modifiers for cross platforms IDE's like Keil. CYBIT maps to bit data type in Keil and uint8 in other platforms. You can find information on these in page number 8 under the section "Keil 8051 Compatibility Defines" (Link: http://www.cypress.com/file/130561/download )

Secondly, you can right click on Check_Mode and select "Find all active references". Then you will be shown the places where the variable is being used and hence obtain the value of it. I could help you more if you could attach your project.

Regards,

Dheeraj

View solution in original post

1 Reply
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Firstly, CYBIT is one of the defines among others which is used to support type modifiers for cross platforms IDE's like Keil. CYBIT maps to bit data type in Keil and uint8 in other platforms. You can find information on these in page number 8 under the section "Keil 8051 Compatibility Defines" (Link: http://www.cypress.com/file/130561/download )

Secondly, you can right click on Check_Mode and select "Find all active references". Then you will be shown the places where the variable is being used and hence obtain the value of it. I could help you more if you could attach your project.

Regards,

Dheeraj