RTC
®
5 PC Interface Board
Rev. 1.9 e
6 Developing User Applications
92
6.9 Miscellaneous
6.9.1 Free Variables
Four so-called “free” variables are available for the
user to freely set with data via the control command
set_free_variable or the short list command
set_free_variable_list.
These variable values can be outputted via the McBSP
interface (see chapter 9.1.7 "McBSP Interface",
page 207) and you can query them via
get_free_variable and get_value as well as log them
via set_trigger/set_trigger4 (see command
description).
The free variables let you, for example, transmit
control commands over the McBSP interface to user
hardware or document the board’s operational states
(e.g. when branching during program execution).
Notes
set_free_variable and set_free_variable_list allow
you to assign any 32-bit unsigned value to a variable.
However, the McBSP interface only outputs 24-bit
values via set_mcbsp_out_ptr and 16-bit values via
set_mcbsp_out (but get_free_variable, get_value
and set_trigger/set_trigger4 return full 32-bit
values).