fscai2c version 21011500
Tool to read or write from an I2C device register
on any I2C port of a GBT-SCA chip connected to any FLX-device E-link
(the latter given by options -G/g/p or option -e)
Usage:
 fscai2c [-h|V] [-d <devnr>] [-e <elink>] [-G <gbt>] [-g <group>] [-p <path>]
         [-R <rate>] -C <ichan> -I <iaddr> [-t] [-a|A <addr>] [-r <nbytes>]
         [-D] [-E] [<value-to-write>]
  -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 (default: 0).
  -g <group> : Group number (default matches GBT EC 'group' = 7).
  -p <path>  : E-path number (default matches GBT EC 'path' = 7).
  -C <ichan> : GBT-SCA I2C channel number.
  -I <iaddr> : I2C device address (decimal or '0x..' for hexadecimal).
  -t         : Use 10-bit I2C addressing mode.
  -a|A <addr>: I2C register address ('a':1-byte, 'A':2-byte).
               (decimal or '0x..' for hexadecimal).
  -r <bytes> : Register content number of bytes (default: 1).
  -R <rate>  : I2C transfer rate (1=100KHz, 2=200KHz, 4=400KHz, 10=1MHz, default: 4).
  -D         : Disable GBT-SCA I2C port after operation (default: leave enabled)
  -E         : Do *not* enable GBT-SCA I2C port at start of operation, assume it already is.
 <value-to-write>: hexadecimal value to write, the number of nibbles determining
                   how many bytes to write.
=> Examples:
Read 2-byte register 6 from a device with I2C address 5 on GBT-SCA I2C channel 4
connected to the EC channel of GBT #3:
  fscai2c -G 3 -C 4 -I 5 -a 6 -r 2 
Write 0x1234 to 2-byte register 6 from I2C device address 5 on GBT-SCA I2C channel 4
connected to the EC channel of GBT #3:
  fscai2c -G 3 -C 4 -I 5 -a 6 1234 
