Hi Dukyu,
it's the nature of SPI interface. While SPI master sends data to slave device, the slave device always sends data back to the master at the same time. So, there's no API for separate operations.
The only workaround is:
- if you want to only send something from master to slave, ignore the data which are send back by slave
- if master device is required only to read something from slave, send some dummy data to slave, so the master will generate clocks needed to clock the data out from the slave
Regards,
Lukas