Closed threexc closed 3 months ago
@tfcollins this should actually be in better shape for review than my PR for AD400x support. I'm still getting the missing emulation artifacts for that one.
I'm getting emulation artifacts for the ad7985 and ad7986, then I'll push a new version. My existing .xml files for those have "ERROR" in some of the value fields for the device, and I'd rather get better results.
Converting this to draft so that it isn't reviewed/run against the checks again until the emulation data is in.
Closing (thought I had done so earlier). There's a newer PR: https://github.com/analogdevicesinc/pyadi-iio/pull/562
Description
Type of change
How has this been tested?
Tested against ad7944 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
andpytest -v --emu --emu-xml=ad7944.xml test/test_ad7944.py
Test Configuration:
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/"
root@zed-2:~# uname -r 6.7.0-rc3-ad7944-00066-gcaa4d5f33137-dirty
Documentation
Added:
Updated:
Checklist: