I would like to use Zephyr SPI APIs (docs.zephyrproject.org/.../spi.html) to control external ADCs. Since I need two chip select pins for selection ADC1, ADC2, ADC3, and ADC4. Does Zephyr SPI APIs support two chip select pins?
I would like to use Zephyr SPI APIs (docs.zephyrproject.org/.../spi.html) to control external ADCs. Since I need two chip select pins for selection ADC1, ADC2, ADC3, and ADC4. Does Zephyr SPI APIs support two chip select pins?
Thanks for your reply! Which API is used for SPI chip selection?
Hi, are you using the sensor API I linked in my last post? If not this blog covers how to use spi in zephyr for e generic device https://blog.golioth.io/how-to-use-generic-spi-devices-with-zephyr/
Anyway you should not have to worry about the chip select
Regards
Runar
That is correct, its well described in the blog from the last post.
I had a look and we don't have any samples for the adxl362 or adxl372 not using the sensor api. But there are Zephyr samples where they are used togheter with the Sensor API. If you check Zephyr/drivers/sensor/ you will find both the adxl362 or adxl372 that you can have a look at.
Regards
Runar
Thanks for your reply!