CTL_STATUS_t ctl_spi_set_mode(CTL_SPI_DEVICE_t *self, int mode);
ctl_spi_set_mode sets the SPI bus mode to use for the device self to mode.
Please refer to ctl_spi_set_protocol for a description of when protocol parameters are validated.
ctl_spi_set_mode returns a standard status code.