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

examples: Add ad57xx dac example #1250

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahaslam2
Copy link

This adds an iio example app for the ad57xx dac.
The example uses the buffer interface to generate a triangular wave of aprox 1 khz.

PR Type

  • Bug fix (a change that fixes an issue)
  • [x ] New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • [x ] I have conducted a self-review of my own code changes
  • I have commented new code, particulary complex or unclear areas
  • I have checked that I did not intoduced new warnings or errors (CI output)
  • I have checked that components that use libiio did not get broken
  • I have updated the documentation accordingly (GitHub Pages, READMEs, etc)

This adds an iio example app for the ad57xx dac.
The example uses the buffer interface to generate a triangular
wave of aprox 1 khz.

Signed-off-by: Axel Haslam <[email protected]>
@rgetz
Copy link
Contributor

rgetz commented Mar 1, 2025

Coverity points out:

Variable 'p_inc' is assigned a value that is never used.

examples/ad57xx-iiostream.c

129	while (!stop) {
130		int32_t *p_dat, *p_end;
131		ptrdiff_t p_inc = sample_size;
132
133		block = iio_stream_get_next_block(txstream);

This should have been caught, but we aren't doing #1223

-Robin

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