3.2.8 call



Description:


You can use the call statement to execute hardware-depending (or custom) built-in functions of the AVIL language.
Calls are not really part of the AVIL syntax but just a mechanism to provide some kind of portability for the intertpreter!

A call can receive arguments as input (as you'll se in a lot of examples) and also can write data in an output buffer.
There's no need of parethesis or comma to passa arguments to a call.
You can access the values written in the output buffer from an AVIL program as a "special variable" called "@x" (where "x" is a progressive index).

By default an AVIL's call can produce only an output value (see MAX_OUT_VALS_NUM in Configurations), so you can access the result of a call after is execution by reading the variable "@1")

Declaration:


Example:


A set of functions for Arduino UNO had been already prepared for controlling I/O and for file's handling.