SPI compatible Digital controlled Amplifier LMH6401

I am using LMH6401 digitally controlled amplifier in my project for ac coupling and need to amplify the ac signal.Since i am not too god in programming. SO i am facing a lot of problems in the code if some one can help me on this forum regarding the code for this device. The data sheet can be found in the below link

Looking forward to hear positive.

Regards