-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add support for LTC2672 #558
Add support for LTC2672 #558
Conversation
145697c
to
41535d4
Compare
Hi @tfcollins , |
adi/ltc2672.py
Outdated
"""LTC2672 DAC""" | ||
|
||
_complex_data = False | ||
channel = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
channel should not be a class property or it needs to be reset within the constructor. This creates an issue when you have multiple instances of the class. channel will keep growing
examples/ltc2672_example.py
Outdated
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | ||
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
from adi.ltc2672 import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not use * imports. Just import what you need
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor changes
Add ltc2672.py driver Add test script, example code Update index.rst, init.py, supported_parts.md files Add ltc2672 rst file Add iio-emu xml file for ltc2672 Update hardware_map.yml emulation context map Signed-off-by: SGudla <Saikiran.Gudla@analog.com>
41535d4
to
3695b49
Compare
Change log: Addressed review comments Import ltc2672 class in example file |
Description
Add ltc2672.py driver
Add test script, example code
Update index.rst, init.py, supported_parts.md files Add ltc2672 rst file
Please delete options that are not relevant.
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 Configuration:
Documentation
If this is a new feature or example please mention or link any documentation. All new hardware interface classes require documentation.
Checklist: