Arduino DUE SPI via PCA9534

That code is just an excerpt, please post the complete sketch that shows the problem. I guess you haven't initialized the SPI channel (#3 in your case).