I have looked at the source code of the c# application software and I have seen the following code
for (int i = 0; i < 4; i++)
buffer[i] = (byte)(data >> (i * 8));
buffer = 32;
buffer_length = 5;
Is that is needed for EVERY register to be encoded correctly ? I'm writing an SPI firmware to control the ADF4158.