Start Back Next End
  
ZBasic Language Reference
18
ZBasic Microcontrollers
Option AtnChar
Option AtnChar [ <constant-expression> | Default | Off ]
Default: Off
This directive can be used to specify a special character that can be used instead of DTR signaling to
perform downloads to a ZBasic device.  This is useful in situations where the communication channel
does not support DTR or is not capable of toggling DTR fast enough to be recognized as an attention
signal.  The range of allowable values for the ATN character is 0 to 31 (&H00 to &H1F).
It is important to note that the ATN character is made part of the download image and is written to
Persistent Memory when the code is downloaded.  If, later, a program is downloaded that does not
contain Option AtnChar directive, the Persistent memory location containing the ATN character value will
be unchanged from the earlier setting.
The pre-defined variable Register.ATNChar can also be used to set or disable the ATN character.  See
section 3.7.2 for more details.
Example
Option AtnChar &H04
Option Include
Option Include [ Public | Private ] <item-list>
Default: none
This directive can be used to add one or more pre-defined structures to the application.  If the Private
keyword is present, the structures will be private to the module in which the directive appears; otherwise
the structures will be public.
The <item-list> element consists of one or more names of pre-defined structures separated by commas. 
A list of the available pre-defined structures and their definitions is available in Appendix C.
Example
Option Include Private Port_t, Timer16_t
Option Objects
Option Objects
Default: none
This option enables the ZBasic object-oriented extensions.  If used, it must appear for the first time in the
first module compiled.  If it does appear in the first module compiled then its presence in other modules is
silently ignored.  This option implicitly enables subroutine/function overloads as well.
Example
Option Objects
Option Overload
Option Overload
Default: none
This option enables the definition of subroutine/function overloads.  If used, it must appear for the first
time in the first module compiled.  If it does appear in the first module compiled then its presence in other
modules is silently ignored.  Note that this option is redundant if Option Objects is present.
Previous page Top Next page