Take a look at the ADC code I put together here
You may need to tweak a little for the AD8341, like if it needs an address as part of the command byte or something.
Take a look at the ADC code I put together here
You may need to tweak a little for the AD8341, like if it needs an address as part of the command byte or something.