fgbtxconf version 21122800
Tool to read or write GBTX registers via an I2C-channel of a GBT-SCA chip,
connected to any FLX-device GBT (2-bit HDLC) E-link:
read or write a single byte from or to the given GBTX register address
or write to multiple consecutive GBTX registers using the contents of a file.
(i.e. ASCII file: 1 (register) byte value (hex) per line,
 e.g. the 'TXT' file generated by the GBTXProgrammer tool).
Provide a file name *or* use option -a with an optional additional byte value
to read resp. write a single GBTX register or, without option -a, to read all registers.
Usage:
 fgbtxconf [-h|V] [-d <devnr>] [-e <elink>] [-G <gbt> [-g <group> -p <path>]] [-R] [-r] [-W]
        -C <ichan> -I <iaddr> -a <addr> [<byte>] | <filename>
  -h         : Show this help text.
  -V         : Show version.
  -d <devnr> : FLX-device to use (default: 0).
  -e <elink> : E-link number (hex) or use -G/g/p options.
  -G <gbt>   : GBT-link number.
  -g <group> : Group number (default: 7=EC).
  -p <path>  : E-path number (default: 7=EC).
  -R         : Reset GBT-SCA.
  -r         : Do not receive and display the GBT-SCA replies.
  -W         : Read writable registers only (default: all).
  -C <ichan> : GBT-SCA I2C channel number.
  -I <iaddr> : GBTX I2C address (hex).
  -a <addr>  : GBTX register address (decimal or hex, 0x.. or x..) to read or write.
 <byte>      : Byte value (decimal or hex, 0x.. or x..) to write to GBTX register <addr> (option -a).
 <filename>  : Name of file with GBTX register data to write to consecutive registers.
=> Examples:
Read all registers of GBTX (I2C address 1) connected to GBT-SCA I2C-channel 0,
GBT-SCA connected to FLX-device GBT link 3 EC-link:
  fgbtxconf -G 3 -I 1 -C 0 (or: fgbtxconf -e ff -I 1 -C 0)
Read GBTX register 32 (0x20):
  fgbtxconf -G 3 -I 1 -C 0 -a 32 (or: fgbtxconf -G 3 -I 1 -C 0 -a 0x20)
Write 0xA5 to GBTX register 32 (0x20):
  fgbtxconf -G 3 -I 1 -C 0 -a 32 A5
Write contents of GBTX-conf.txt to GBTX registers:
  fgbtxconf -G 3 -I 1 -C 0 GBTX-conf.txt
