ADcmXL3021 SPI

Hello, now I am using ADcmXL3021 to get the vibration data via SPI, but unfortunately, there is no reference source code. I could not find anywhere. Just we have SPI PROGRAMMING EXAMPLE in the Datasheet. I want to make and control the SPI communication protocol without using GUI. Can you provide example source code?
Best Regards.