Command-line arguments » History » Version 2

Version 1 (Andrew McPherson, 2015-07-24 12:11 AM) → Version 2/5 (Andrew McPherson, 2015-07-24 12:12 AM)

h1. Command-line arguments

Every BeagleRT program supports a standard set of command-line arguments, listed below. Either the long form or the short (single-character) form can be used

Other arguments can be added in each project. With the exception of @-p@ and @-v@, the standard arguments all use capital letters, leaving the lowercase letters free for user-defined arguments. The @BeagleRT_usage()@ function explains the standard arguments as follows:

<pre>
--period [-p] period: Set the hardware period (buffer) size in analog samples samples\n&quot;;
--dac-level [-D] dBs: Set the DAC output level (0dB max; -63.5dB min) min)\n&quot;;
--adc-level [-A] dBs: Set the ADC input level (0dB max; -12dB min) min)\n&quot;;
--hp-level [-H] dBs: Set the headphone output level (0dB max; -63.5dB min) min)\n&quot;;
--mute-speaker [-M] val: Set whether to mute the speaker initially (default: no) no)\n&quot;;
--use-analog [-N] val: Set whether to use ADC/DAC analog (default: yes) yes)\n&quot;;
--use-digital [-G] val: Set whether to use digital GPIO channels (default: yes) yes)\n&quot;;
--analog-channels [-C] val: Set the number of ADC/DAC channels (default: 8) 8)\n&quot;;
--digital-channels [-B] val: Set the number of GPIO channels (default: 16) 16)\n&quot;;
--receive-port [-R] val: Set the receive port (default: 9998) 9998)\n&quot;;
--transmit-port [-T] val: Set the transmit port (default: 9999) 9999)\n&quot;;
--server-name [-S] val: Set the destination server name (default: '127.0.0.1') &#x27;127.0.0.1&#x27;)\n&quot;;
--pru-file val: Set an optional external file to use for the PRU binary code code\n&quot;;
--verbose [-v]: Enable verbose logging information information\n&quot;;
</pre>