Did you look at the example in my previous answer? It takes a 64 bit hex string and converts it to a 64 bit binary string and a double precision numeric.
What is the SPI interface and what does it have to do with Radio Astronomy? Do you send data in packets, bytes, or a bit at a time?
If you need to send the data in bytes, look at my examples
here.
These examples convert a double precision numeric to an array of bytes. The example in my earlier answer to your question takes a long hex string and converts it to a double. Put the two together and you can convert a long hex string to a
n array of bytes.