analogdevicesinc / pyadi-iio

Python interfaces for ADI hardware with IIO drivers (aka peyote)
https://analogdevicesinc.github.io/pyadi-iio
Other
134 stars 99 forks source link

Enhance ADRV9009-ZU11EG multi-class to support selective FMComms8 suport #541

Open tfcollins opened 3 months ago

tfcollins commented 3 months ago

Addresses #535

github-actions[bot] commented 3 months ago

Generated documentation for this PR is available at Link

github-actions[bot] commented 3 months ago

Test Results

1 463 tests  ±0     279 :white_check_mark: ±0   9m 51s :stopwatch: ±0s     1 suites ±0   1 184 :zzz: ±0      1 files   ±0       0 :x: ±0 

Results for commit ecdc8d3c. ± Comparison against base commit 2061827b.

:recycle: This comment has been updated with latest results.

cafeclimber commented 1 month ago

Hey Travis. Sorry for the delay, but finally got around to testing this today. Everything seems to work! I did have to make a few edits to the multi class. There are some checks for fmcomms8 that need to be changed to index into the list. Specifically lines 234, 246, 254, 271, 360, and 374. I just did like you did earlier and changed the for loop to be (e.g.)

for i, dev in enumerate([self.primary] + self.secondaries):
    dev._clock_chip.attrs["sleep_request"].value = "1"
    if self.fmcomms8[i]:
        dev._clock_chip_fmc.attrs["sleep_request"].value = "1"
    dev._clock_chip_carrier.attrs["sleep_request"].value = "1"