69
Appendix B
BBBBB
Lua extensions
Lua extensions B
Lua in the Terminal Control Unit has been expanded with a number of
functions to access and control the specific environment. The functions are
grouped as follows:
• GPIO functions
• Miscellaneous functions
GPIO functions
API functions for general purpose input/output. The following functions are
available:
• tcu_get_adc_value
• tcu_get_gpi_pin
• tcu_get_tacho_value
• tcu_set_dac_value
• tcu_set_gpo_pin
• tcu_start_gpo_square_wave
• tcu_stop_gpo_square_wave