|
|||||||||||
|
Technical Support Support Resources
Product Information |
C166: Declaring bdata and sbit VariablesInformation in this article applies to:
QUESTIONI'm trying to use the sbit keyword to create a bit in a bdata variable, but I can't seem to get the example program to work:
I get the following compiler messages:
How do I declare local bits? ANSWERAs stated in the C166 User's Guide, the sbit notation can be only used in combination with global variables. This means that you need to define the variable at file level. However, you may use bit-field structures instead, since the usage of bit-field structures is not restricted. Example:
MORE INFORMATION
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
|||||||||||
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.