fttcbusy version 24129000
Displays BUSY-related settings and optionally E-link (LTI)TTC BUSY status and enables,
optionally clearing (latched) E-link BUSY bits.
With option -T the 'TTC BUSY accepted' register contents are displayed, as well as
the corresponding E-link numbers, while option -C clears these registers after being displayed.
Also the tool may be used to configure the TTC-BUSY signal settings (limit, prescale, width)
and BUSY output settings (master, inhibit, B-channel, DMA and FIFO tresholds).
Option -R resets the TTC decoder.
NB: some of the settings are only read and written via FLX-card device #0
    (in the output indicated by a '*').

Usage: fttcbusy -h|V -d<devnr> -C -R -G<linknr>|-T
                -e|n<elinknr> | -E|N<linknr>
                -l<limit> -p<prescale> -w<width>
                -m<b> -i<b> -b<b> -B<b>
                -X<thresh> -x<diff> -Y<thresh> -y<diff>
  -h           : Show this help text.
  -V           : Show version.
  -d <devnr>   : FLX-device number (default: 0).
  -C           : Clear (latched) TTC-BUSY register bits.
  -R           : Reset TTC decoder.
  -G <linknr>  : GBT-link number, implies option -T.
  -T           : Display per-(E)link (LTI)TTC-BUSY info (default: all links).
  -e|n<elinknr>: Set/reset e-link BUSY-enable of selected e-link number (hex).
  -E|N <linknr>: Set/reset e-link BUSY-enable for e-links of this link.
  -l <limit>   : Set TTC BUSY limit time parameter (16-bit).
  -p <prescale>: Set TTC BUSY prescale parameter (20-bit).
  -w <width>   : Set TTC BUSY width parameter (16-bit).
  -m <b>       : Set (1) or clear (0) Master BUSY.
  -i <b>       : Set (1) or clear (0) BUSY Inhibit (= BUSY off).
  -b <b>       : Enable(1) or disable(0) BUSY-by-DMA and BUSY-by-FIFO.
  -D <b>       : Enable(1) or disable(0) BUSY-by-DMA.
  -F <b>       : Enable(1) or disable(0) BUSY-by-FIFO.
  -B <b>       : Enable(1) or disable(0) TTC B-channel/TriggerType.
                 (NB: if set limits TTCtoHost rate to ca. 200KHz max)
  -X <thresh>  : Set BUSY-by-DMA assert threshold (in MiB).
  -x <diff>    : Set BUSY-by-DMA difference assert/deassert thresholds (in MiB).
  -Y <thresh>  : Set BUSY-by-FIFO assert threshold (hex, max=0xFFF).
  -y <diff>    : Set BUSY-by-FIFO difference assert/deassert thresholds (hex).
