Yes. the SPI protocol must be quite common and I believe it is already resolved in the cpp and h files. I'll only have the chip to test it tomorrow. I'll try something in the sketch calling some function to see if it works... Maybe tomorrow I'll ask something again. Anyway, thank you for your clues
The below was from a very basic SPI DAC device. It did not do any configuring of the chip (defaults were OK), which you might find in the code you linked above, and it assumes the default SPI settings, which you might also verify in that code as well. If the setting are different, you can fix that, see the Arduino SPI document page.
// from basic sketch.
#include <SPI.h>
const int slaveSelectPin = 10;
void setup() {
pinMode(slaveSelectPin, OUTPUT);
SPI.begin();
}
unsigned int cUp;
void loop() {
dacWrite(cUp);
cUp++;
delay(15); // for now just to see it.
}
void dacWrite(unsigned int value) {
digitalWrite(slaveSelectPin, LOW);
SPI.transfer16(value);
digitalWrite(slaveSelectPin, HIGH);
}