flpgbtconf version 25092900
Read or write an lpGBT register or register bitfield, by address or name,
optionally from/to a secondary lpGBT via the primary lpGBT's EC-channel,
or from/to a secondary lpGBT via an I2C Master of a primary lpGBTv1.

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>
                  -m<master> -f<khz> -s<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/v2 (see -0; default: auto-detect).
  -e         : Use the EC-channel (default: IC-channel).
  -f <freq>  : I2C Master bus frequency, in KHz
               (only with -s; 100,200,400 or 1000; default:100).
  -G <link>  : lpGBT link number.
  -I <i2c>   : lpGBT I2C address (hex).
  -m <master>: I2C Master index (only with -s; 0,1 or 2; default:0).
  -s <i2c>   : I2C address (hex) of a secondary lpGBT accessed via an lpGBTv1
               I2C Master (NB: use option -0 to access an lpGBTv0 like this).
  -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).
