analogdevicesinc / pyadi-iio

Python interfaces for ADI hardware with IIO drivers (aka peyote)

Home Page:https://analogdevicesinc.github.io/pyadi-iio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hrtimer in pyadi?

karu2003 opened this issue · comments

how to work with hrtimer in pyadi-iio?

You would need to enable the RTC trigger https://wiki.analog.com/software/linux/docs/iio/iio-trig-sysfs#adding_linux_driver_support and try to map it to your device first

Is there no support in PyAdi-iio.

The HR timer is no different than any other trigger. As long as you can verify you can use it to drive/trigger your device, you simply set it as a source in your init like so:

self._trigger = self._ctx.find_device(trigger_name)

Thank you. I tried this right away. I made my own timer.
https://github.com/karu2003/rpi_ad7476/blob/master/hrtimer.py

I think this can be closed now