Controller Values
For the configuration of particular hardware or when dedicated controller function should be configured manually, the available port names and constants (predefined by the manufacturer of the controller) are necessary. Therefore the Luna-IDE provides an overview, accessible through „Zeige alle µC-Defines“ („Show all µC-Defines“) in menu „Projekt“ or through clicking the corresponding button:
After clicking the butten the overview-window pop up:
In source-code the access is given via the class „Avr“.
Beispiel
avr.TWCR = ((1<<TWINT) or (1<<TWSTA) or (1<<TWEN)) ' wait until transmission completed while ( 0 = (avr.TWCR and (1<<TWINT)) ) wend