fscai2c version 25012900
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<lnk>] [-g<group>] [-p<path>]
         [-f<freq>] -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 <lnk>   : 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.
  -f <freq>  : I2C bus frequency, in KHz (100,200,400 or 1000, default: 400).
  -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; max 16).
  -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 -G3 -C4 -I5 -a6 -r2 
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 -G3 -C4 -I5 -a6 1234 
