Hi,
In this case you just use spi_bufTx[0] = 0;If you wanted e.g. SPI_MODE = 2 and LSBFIRST, you would use
spi_bufTx[0] = 2 | 8;In other words, the first 2 bits define mode, the 3rd bit defines CS behavior, the 4th defines LSB etc.
CS signal is controlled by operating system. You can only change its behavior by the 3rd bit as mentioned above.As for the delay function, I have turned it into a separate topic.
Best regards,
Jaroslav