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

adi:ad5754r: Add initial support #475

Merged
merged 1 commit into from
Sep 21, 2023
Merged

adi:ad5754r: Add initial support #475

merged 1 commit into from
Sep 21, 2023

Conversation

ribdp
Copy link
Contributor

@ribdp ribdp commented Sep 12, 2023

Description

Add initial attribute r/w support for ad5754r

Add driver, example, doc and emulation context for ad5754r

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

SDP-K1 with EVAL-AD5754R, on a Windows 10 machine
Performed attribute read/write

  • Test A
  • Test B

Test Configuration:

  • Hardware: SDP-K1 with EVAL-AD5754R
  • OS: Windows 10

Documentation

If this is a new feature or example please mention or link any documentation. All new hardware interface classes require documentation.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have signed off all commits and they contain "Signed-off by: "
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@ribdp ribdp marked this pull request as ready for review September 12, 2023 08:36
@ribdp ribdp marked this pull request as draft September 12, 2023 08:37
@ribdp ribdp marked this pull request as ready for review September 12, 2023 09:39
@ribdp
Copy link
Contributor Author

ribdp commented Sep 12, 2023

@tfcollins the PR is ready for review now

@pytest.mark.parametrize("channel", [0])
def test_ad5754r_tx_data(test_dma_tx, iio_uri, classname, channel):
# TODO add function call once driver is updated with waveform generation
# capabilities
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to wait for the driver to make sure this actually works. Can you enhance this test code to include the other properties as well? We are trying to increase general test coverage

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed this for now, and have added other attribute tests.

Copy link
Contributor Author

@ribdp ribdp Sep 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tfcollins Is there a way to test string properties of the channel class? I can see existing test methods for integer properties of channel classes, but not for non-integer ones.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You would need to enhance the attribute_single_value_str function to support sub-channels

@ribdp ribdp requested a review from tfcollins September 13, 2023 01:49
Add initial attribute r/w support for ad5754r

Signed-off-by: RibhuDP <[email protected]>
@ribdp
Copy link
Contributor Author

ribdp commented Sep 21, 2023

Hi @tfcollins , I've now added tests for global and channel attributes. Could you please have a look?

@tfcollins tfcollins merged commit a0a3981 into analogdevicesinc:master Sep 21, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants