fpepo version 25061300
Peek or poke FLX-device BAR0, BAR1 or BAR2 registers using hexadecimal register addresses.
Optionally reads multiple registers.
Examples:
  Read 8-byte BAR2 register address 0x1100:  fpepo 1100
  Read 8-byte BAR0 register address 0x10:    fpepo -b 0 10
  Write 8-byte BAR2 register address 0x1100: fpepo 1100 000000002aaaff88
  (zeroes in dataword not required; just emphasizing that it is a 64-bit write)
  Write 4-byte BAR2 register address 0x1104: fpepo -n 32 1104 12345678

Usage: fpepo [-h|V] [-d <devnr>] [-b <bar>] [-i] [-n <bits>] [-r <cnt>] <addr> [<data>]
  -h         : Show this help text.
  -V         : Show version.
  -d <devnr> : FLX-device number to use (default: 0).
  -b <bar>   : Selected BAR segment 0, 1 or 2 (default: 2).
  -i         : Select 4-byte register size (default: 8 bytes).
               (Alternative for (legacy) '-n' option).
  -n <bits>  : Select register size of 4 or 8 bytes, i.e. 32 or 64 bits (default:64)
               (also see option -i).
  -r <cnt>   : Read <cnt> addresses starting from the given address;
               does not apply when writing (range [1..1024], default: 1).
  -s <n>     : In case of multiple addresses, read every <n>-th
               (range [1..1024], default: 1).
   <addr>    : Address (hex) of register address (within the selected BAR segment)
               to be read or written to.
   <data>    : Dataword (hex) to write to the given register address;
               the resulting register content is displayed.
