Skip to content

Commit

Permalink
Merge pull request #599 from analogdevicesinc/tfcollins/ad9213
Browse files Browse the repository at this point in the history
Tfcollins/ad9213
  • Loading branch information
tfcollins authored Sep 25, 2024
2 parents 16fe567 + 4acdb8e commit a09366e
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions adi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
from adi.ad9162 import ad9162
from adi.ad9166 import ad9166
from adi.ad9172 import ad9172
from adi.ad9213 import ad9213
from adi.ad9250 import ad9250
from adi.ad9265 import ad9265
from adi.ad9434 import ad9434
Expand Down
16 changes: 16 additions & 0 deletions adi/ad9213.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2024 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

from adi.context_manager import context_manager
from adi.rx_tx import rx_def


class ad9213(rx_def, context_manager):
""" AD9213 High-Speed ADC """

_complex_data = False
_rx_channel_names = ["voltage0"]
_control_device_name = "axi-ad9213-rx-hpc"
_rx_data_device_name = "axi-ad9213-rx-hpc"
_device_name = ""
7 changes: 7 additions & 0 deletions doc/source/devices/adi.ad9213.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ad9213
=================

.. automodule:: adi.ad9213
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions doc/source/devices/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Supported Devices
adi.ad9162
adi.ad9166
adi.ad9172
adi.ad9213
adi.ad9250
adi.ad9265
adi.ad936x
Expand Down
1 change: 1 addition & 0 deletions supported_parts.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
- AD9162
- AD9166
- AD9172
- AD9213
- AD9250
- AD9265
- AD936X (Pluto, FMComms2/3/4/5, ADRV936X)
Expand Down
2 changes: 2 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def checkparts(c):
"ad777x",
"ad579x",
"adaq42xx",
"ad9213",
]
for c in dir(mod):
if (
Expand Down Expand Up @@ -244,6 +245,7 @@ def checkemulation(c):
"ad9152",
"ad9162",
"ad9166",
"ad9213",
"ad9250",
"ad936x",
"ad937x",
Expand Down
11 changes: 11 additions & 0 deletions test/test_ad9213_p.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import pytest

hardware = "ad9213"
classname = "adi.ad9213"


@pytest.mark.iio_hardware(hardware, True)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0])
def test_ad9680_rx_data(test_dma_rx, iio_uri, classname, channel):
test_dma_rx(iio_uri, classname, channel, buffer_size=2 ** 11)

0 comments on commit a09366e

Please sign in to comment.