Dear Sir.
I am using SPI as follows.
gpio_pin_write(dev_io, LIS2DH12_CS_PIN, false);
err = spi_transceive(spi_dev1, &spi_cfg1, &tx, &rx);
gpio_pin_write(dev_io, LIS2DH12_CS_PIN, true);
In this case 2 spi bytes are sent. the CS length contains the spi clock and is 30 us.
In another case
gpio_pin_write(dev_io, LIS2DH12_CS_PIN, false);
err = spi_transceive(spi_dev1, &spi_cfg1, &tx, &rx);
gpio_pin_write(dev_io, LIS2DH12_CS_PIN, true);
In this case7 spi bytes are sent. the CS length is finished before spi clock are over and is 20 us.
How can I tell if the SPI transaction is over ?.
Please Advise