You can send as many bytes/bits as you want over SPI without toggeling the CS line. Toggling the CS line indicates the start/end of a transfer, and that transfer can be as many bits as you want. I have to assume that the mraa_spi_write_buf call only changes the CS line before he first byte and after the last byte.
↧