Copied Reid's code for impedance testing.

Still not connected to anything... Planning to add support to the FPGA
source soon.