Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
bit type
The mikroBasic PRO for AVR compiler provides a 
bit
data type that may be used
for variable declarations. It can not be used for argument lists, and function-return
values.
dim bf as bit  ' bit variable
There are no pointers to bit variables:
dim ptr as ^bit     ' invalid
An array of type bit is not valid:
dim arr as array[5] of bit     ' invalid
Note : 
- Bit variables can not be initialized. 
- Bit variables can not be members of structures. 
- Bit variables do not have addresses, therefore unary operator 
@
(address
of) is not applicable to these variables. 
Related topics: Predefined globals and constants
91
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Specifics
mikroBasic PRO for AVR
CHAPTER 3