Skip to content
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

Tfcollins/ad9213 #599

Merged
merged 5 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading