fttcbusy version 26072000
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, 0..65535).
  -p <prescale>: Set TTC BUSY prescale parameter (20-bit, 0..1048575).
  -w <width>   : Set TTC BUSY width parameter (16-bit, 0..65535).
  -m <b>       : Set (1) or clear (0) Master BUSY.
  -i <b>       : Set (1) or clear (0) BUSY Inhibit (= BUSY off).
  -b <b>       : Enable or disable BUSY-by-DMA and BUSY-by-FIFO descriptors using mask (hex, max=0xFF).
  -D <b>       : Enable or disable BUSY-by-DMA descriptors using mask (hex, max=0xFF).
  -F <b>       : Enable or disable BUSY-by-FIFO descriptors using mask (hex, max=0xFF).
  -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 of free space).
                 BUSY is asserted when free space falls below threshold.
  -x <diff>    : Set BUSY-by-DMA deassert difference (in MiB of free space).
                 BUSY is cleared when free space rises by <diff> above assert threshold.
  -Y <thresh>  : Set BUSY-by-FIFO assert threshold (hex, max=0xFFF, 100% occupied = 0xFFF).
                 BUSY is asserted when occupied space reaches threshold.
  -y <diff>    : Set BUSY-by-FIFO difference deassert difference.
                 BUSY is cleared when occupied space falls by <diff> below the assert threshold (hex).
