CIR calculation

Hi all,

I am confused about the CIR calculation.
The documentation only shows 5.59 dwt_readaccdata with no examples, formulas, or restrictions.
I have DWM1001 devices at 6.8 Mbps. PRF 64 MHz and a PAC 8

I found these formulas in other posts, but I’m not sure.
Are the formulas correct?
cir = (uint8 )malloc(5sizeof(uint8));
real = (int16) (cir[2]<<8) | (int16)(cir[1]);
image = (int16) (cir[4]<<8) | (int16)(cir[3]);

MAX(abs(real),abs(imag)) + 1/4*MIN(abs(real),abs(imag));