flpgbtconf version 22051800
Read or write an lpGBT register or register bitfield, by address or name.
The value of the item is read and displayed, and if requested,
written to and re-read and again displayed.
Requires the IC channel (or EC-channel) of the FLX device to be enabled.
Without options -G and -I some information about the selected register
or bitfield is displayed.
'flpgbtconf list' displays all known 'item' names plus additional info
about each item (for either lpGBTv0 or lpGBTv1: auto-detected or
forced by means of option -0 or -1), and in combination with options -d/-G/-I
displays the current value of each item of the selected lpGBT as well.
(NB: for GBTX devices use the fgbtxconf tool).

Usage: flpgbtconf [-h|V] [-d<devnr>] [-D<dma>] [-G<link> -I<i2c>]
                  [-0|1] [-e] [-X] [-Z]
                  <name> [<value>]
  -h         : Show this help text.
  -V         : Show version.
  -d <devnr> : FLX-device number (default: 0).
  -D <dma>   : FLX-device DMA controller for receiving (default: 0).
  -0         : Assume lpGBTv0, also for 'flpgbtconf list' or
               'flpgbtconf <name/addr>' or '-Z' (default: auto-detect).
  -1         : Assume lpGBTv1 (see -0; default: auto-detect).
  -e         : Use the EC-channel (default: IC-channel).
  -G <link>  : lpGBT link number.
  -I <i2c>   : lpGBT I2C address (hex).
  -X         : Debug mode: display bytes of received frames;
               also: continue, even when nothing is received (e.g. with -Z).
  -Z         : Do NOT receive and process/display replies.
 <name>      : Name of register or bitfield, or hex (0x) or decimal address.
               (Name "list" results in output of a list of all known items,
                including their current values in a connected lpGBT chip
                when options -G/I are provided).
 <value>     : Value to write to register or bitfield (hex or decimal).
