[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update
How has this been tested?
Tested against AD7944, AD7986 and AD7985 eval boards attached to a zedboard.
Generalized manual test flow:
install pyadi-iio and dependencies in venv
Start Python interpreter
import adi
Instantiate adc object, e.g. adc = adi.ad7944(uri="ip:10.2.5.203")
Check that adc.rx() succeeds with no warnings or errors
Check sampling frequency with adc.sampling_frequency
Set sampling frequency with adc.sampling_frequency =
Check sampling frequency again with adc.sampling_frequency and confirm change successful
Test artifacts for pytest-libiio added as test/test_ad7944.py and run from local machine using e.g.:
pytest --hw=ad7944 -v test/test_ad7944.py --uri=ip:10.2.5.203
and
pytest -v --emu --emu-xml=ad7944.xml test/test_ad7944.py
Description
Type of change
Please delete options that are not relevant.
How has this been tested?
Tested against AD7944, AD7986 and AD7985 eval boards attached to a zedboard.
Generalized manual test flow:
install pyadi-iio and dependencies in venv Start Python interpreter import adi Instantiate adc object, e.g. adc = adi.ad7944(uri="ip:10.2.5.203") Check that adc.rx() succeeds with no warnings or errors Check sampling frequency with adc.sampling_frequency Set sampling frequency with adc.sampling_frequency = Check sampling frequency again with adc.sampling_frequency and confirm change successful
pytest --hw=ad7944 -v test/test_ad7944.py --uri=ip:10.2.5.203
andpytest -v --emu --emu-xml=ad7944.xml test/test_ad7944.py
Test Configuration:
Hardware: Zedboard + EVAL-AD7944FMCZ/EVAL_AD7944_85_86FMCZ
OS:
PRETTY_NAME="Kuiper GNU/Linux 11.2 (bullseye)" NAME="Kuiper GNU/Linux" VERSION_ID="11.2" VERSION="11.2 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="https://github.com/analogdevicesinc/adi-kuiper-gen" SUPPORT_URL="https://ez.analog.com/linux-software-drivers/"
Documentation
Added:
Updated:
Checklist: