ADuCM350 Voltage and Current in Bioimpedance example

Hi,

I'm trying to get the current and voltage magnitudes using the ImpedanceMeasurement_4WireBioIsolated.c example.

I know the example prints the DFT values, but I want to also print the actual measurements.

Looking at the documentation for the function:

arm_cmplx_mag_q31

It says that it returns the result in a 2.30 format, I tried sending the magnitude obtained to a fixed32_t variable and then printing it using the sprintf_fixed32 function in the same example.

The results that I get are quite big, and I'm not sure in what order of magnitude they are being represented. What is the correct way of printing the 2.30 representation?

Also, should the voltage or current be adjusted by the gain of the system?

Thanks in advance!