flpgbtio version 25092900
Tool to write and/or read the lpGBT GPIO bits and direction register,
as well as other GPIO-related registers (pull-up/down, drive strength)
Usage:
 flpgbtio -h|V -d<devnr>] -D<dma> -G<link> -I<i2c> -0|1 -e
          -i<bit> -o<dir> -E<ena> -U<up> -S<s> -X -Z [<value>]
  -h         : Show this help text.
  -V         : Show version.
  -d <devnr> : FLX-device number (default: 0).
  -D <dma>   : DMA controller number for receiving (default: 0).
  -0         : If lpGBT, assume v0 (default: auto-detect).
  -1         : If lpGBT, assume v1/v2 (default: auto-detect).
  -e         : Use the EC-channel (default: IC-channel).
  -G <link>  : lpGBT link number.
  -I <i2c>   : lpGBT I2C address (hex).
  -i <bit>   : Read or write GPIO bit number <bit> (default: all).
               NB: if a single I/O pin is written to, its direction bit
                   is set to output (independent of option -o).
  -o <dir>   : Set GPIO direction register to value <dir> (16-bit hex).
  -E <ena>   : Set GPIO pull-up/down enable register to value <ena> (16-bit hex).
  -U <up>    : Set GPIO pull-up/down register to value <up> (16-bit hex).
  -S <s>     : Set GPIO drive strength register to value <s> (16-bit hex).
  -r <rep>   : Generate <rep> pulses up/down or down/up before setting
               the (single) output to the requested value (for debug/demo purposes).
  -t <us>    : Width of the '-r' pulses, in microseconds [2..1000] (default: 2).
  -X         : Debug mode: display bytes of received frames.
  -Z         : Do NOT receive and process/display replies.
 <value>     : Value to write (0 or 1 for a single GPIO bit,
               or up to 0xFFFF otherwise, hex);
               if no value is provided a read operation is performed.
