|
| 1 | +import pytest |
| 2 | + |
| 3 | +hardware = "ad7625" |
| 4 | +classname = "adi.ad7625" |
| 5 | + |
| 6 | +######################################### |
| 7 | +@pytest.mark.iio_hardware(hardware) |
| 8 | +@pytest.mark.parametrize("classname", [(classname)]) |
| 9 | +@pytest.mark.parametrize( |
| 10 | + "attr, start, stop, step, tol, repeats", |
| 11 | + [("sampling_frequency", 1000000, 6000000, 100000, 50000, 1),], |
| 12 | +) |
| 13 | +def test_ad7625_attr( |
| 14 | + test_attribute_single_value, |
| 15 | + iio_uri, |
| 16 | + classname, |
| 17 | + attr, |
| 18 | + start, |
| 19 | + stop, |
| 20 | + step, |
| 21 | + tol, |
| 22 | + repeats |
| 23 | +): |
| 24 | + test_attribute_single_value( |
| 25 | + iio_uri, classname, attr, start, stop, step, tol, repeats |
| 26 | + ) |
| 27 | + |
| 28 | + |
| 29 | +######################################### |
| 30 | +@pytest.mark.iio_hardware(hardware, True) |
| 31 | +@pytest.mark.parametrize("classname", [(classname)]) |
| 32 | +@pytest.mark.parametrize("channel", [0]) |
| 33 | +def test_ad7625_rx_data(test_dma_rx, iio_uri, classname, channel): |
| 34 | + test_dma_rx(iio_uri, classname, channel, buffer_size=2 ** 15) |
0 commit comments