I'm trying to convert original Raspberry PI code using the BCM2835 to the Silicon Labs CP213x.
I was naively hoping for a one 2 one conversion, but I'm getting wiser :-)
Using the SLAB_USB_SPI interface I miss a method for setting the SPI mode. In the BCM2835 I specify the mode as:
// BCM2835_SPI_MODE3 = 3, // CPOL = 1, CPHA = 1, Clock idle high, data is clocked in on rising, edge output data (change) on falling edge
How do I do that in the CP213x ?
Anyone know if the byte order is the same for the BCM2835 and CP213x ?