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:ad7134: Add support for ad7134 #578

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

jansunil
Copy link
Contributor

@jansunil jansunil commented Jun 14, 2024

  1. Add pyadi driver for ad405x family
  2. Add example script for data capture with AD4052
  3. Add documentation

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

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?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • Hardware:
  • OS:

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

@jansunil jansunil force-pushed the add-support-to-ad7134 branch 6 times, most recently from e6fc483 to 48c389f Compare June 18, 2024 08:57
@jansunil
Copy link
Contributor Author

Changelog: Fixed pylint and build errors

@jansunil
Copy link
Contributor Author

@tfcollins - Could you please review these changes when you get a chance?

@tfcollins tfcollins self-requested a review June 20, 2024 17:54
@@ -70,6 +70,8 @@
- AD5940
- AD6676
- AD7124
- AD7134
- AD4134
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please put these in numeric order

adi/ad7134.py Outdated
# Copyright (C) 2024 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD
# Copyright (C) 2024 Analog Devices, Inc.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Full license not needed. Just the SPDX

adi/ad7134.py Outdated
""" AD7134 ADC """

_complex_data = False
channel = [] # type: ignore
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be called "channels". Needs to be reset/initialized in the constructor similar to the issue in the related PR

Copy link
Collaborator

@tfcollins tfcollins left a comment

Choose a reason for hiding this comment

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

Only minor issues to fix

1. Add pyadi driver for ad7134 family
2. Add example script for data capture with AD7134
3. Add documentation

changes
@jansunil
Copy link
Contributor Author

Changelog: Addressed review comments

  1. Corrected the license header
  2. reword channel->channels
  3. Ordered AD4134 in numeric order in the supported_parts.md

@jansunil
Copy link
Contributor Author

@tfcollins - Do these changes look good now?

@tfcollins tfcollins merged commit 3e77082 into analogdevicesinc:main Jun 24, 2024
26 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