-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for ADAQ42xx #487
Add support for ADAQ42xx #487
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can get a bit better reuse on the parent class existing methods
21d39f4
to
3777b05
Compare
Thank you for your review @tfcollins. I made the changes you asked for. Change log V1 -> V2:
|
3777b05
to
7b2d804
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add the necessary import in init.py
- Include a new context file for the new system
- Add a new test since the driver has more properties
7b2d804
to
df285a8
Compare
I don't have adqa4224 but do have ad4030. I was trying to set up ad4030 with zed board to test this (even if indirectly), but something didn't work on the hdl/linux side. Will come back to this task when able to test the changes. By the way, should this PR also include a device XML file generated with Change log V2 -> V3:
|
df285a8
to
7c0e760
Compare
Yes for the new component |
ad4630 simple plot example intended to iterate over the list of channels but incorrect attribute name prevented it from doing so. Use the correct channel list attribute name to iterate over ad4630/adaq42xx channel list. Fixes: <5cf933d91787> (Added ad4630 support) Signed-off-by: Marcelo Schmitt <[email protected]>
AD4630 and ADAQ42xx designs are very similar, differing mainly on the availability (or not) of PGIA gain. Add input scale properties to handle ADAQ42xx PGIA control and add ADAQ4216, ADAQ4220, and ADAQ4224 to the list of supported devices. Signed-off-by: Marcelo Schmitt <[email protected]>
Add simple adaq4224 example featuring adjustable input scale. Signed-off-by: Marcelo Schmitt <[email protected]>
We have sleep parameter for class interface tests. Add sleep parameter for sub class inteface tests so class and sub class tests can provide similar functionality. Signed-off-by: Marcelo Schmitt <[email protected]>
Add short description for test sleep parameter. Signed-off-by: Marcelo Schmitt <[email protected]>
Make attribute_multiple_values() test support sub channel attributes. This might be useful for testing channel attributes which values must match some available list such as scale_available, sampling_frequency_available, etc. Signed-off-by: Marcelo Schmitt <[email protected]>
Add adaq4224 device xml file and update hardware map with info about new hardware emulation. Signed-off-by: Marcelo Schmitt <[email protected]>
Add test for ADAQ4224 scale attribue. Signed-off-by: Marcelo Schmitt <[email protected]>
7c0e760
to
65fd32a
Compare
Hi @tfcollins, After testing this on ZebBoard with EVAL-ADAQ4224-FMCZ it was possible to make the code cleaner. Change log V3 -> V4
|
Description
AD4630 and ADAQ42xx designs are very similar, differing mainly on the availability (or not) of PGIA gain.
Add input scale properties to handle ADAQ42xx PGIA control and add ADAQ4216, ADAQ4220, and ADAQ4224 to the list of supported devices.
Type of change
Please delete options that are not relevant.
How has this been tested?
This has been tested on ZebBoard with EVAL-ADAQ4224-FMCZ (setup by @ladace).
Test Configuration:
From iio_info:
python3 examples/ad4630/ad4630_example_scale.py "ip:<address_omitted>" "adaq4224"
pytest -vs --emu --custom-hw-map=test/emu/hardware_map.yml -k 'not prod' test/test_ad4630.py
Documentation
Linux kernel support has been included in PR #2262.
Checklist: