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

Change for adrv9002 sdk26 #494

Merged
merged 3 commits into from
Jun 6, 2024
Merged

Change for adrv9002 sdk26 #494

merged 3 commits into from
Jun 6, 2024

Conversation

nunojsa
Copy link
Contributor

@nunojsa nunojsa commented May 30, 2024

PR Description

Support the new adrv9002 device driver API. Changes had to be done for the RSSI widget as now the channel needs to be enabled in order to read it. I'm also introducing a new iio_widget_update_value() widget API which updates the GUI taking the value already read from the device. This is useful to avoid an unnecessary device call when port_en is set to pin (more info in the commit message)

PR Type

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

PR Checklist

  • I have followed the coding standards and guidelines
  • I have conducted a self-review of my own code changes
  • I have commented new code, particulary complex or unclear areas
  • I have checked in CI output that no new warnings/errors got introduced
  • I have updated documentation accordingly (GitHub Pages, READMEs, etc)

Update profiles for API 68.13.7.

Signed-off-by: Nuno Sa <[email protected]>
Add an API to only update the gui value of a specific widget. This is
useful when we have to do the actual attribute reading before we need to
update the GUI.

In the next patch, we'll introduce an user of this API.

Signed-off-by: Nuno Sa <[email protected]>
With the changes in the device driver API, reading the RSSI on a channel
that's not enabled will trow an error. Hence, instead of flooding the
device with error's (and the kernel log), don't read the RSSI for
channels that are not enabled.

With the above, as we always need to read the ensm widget, make use
iio_widget_update_value() to update it in case port enable is set to pin
(and hence avoiding another call into the device).

Signed-off-by: Nuno Sa <[email protected]>
@nunojsa nunojsa merged commit 54efaad into main Jun 6, 2024
10 checks passed
@nunojsa nunojsa deleted the adrv9002-sdk26 branch June 6, 2024 09:13
@nunojsa nunojsa mentioned this pull request Jun 7, 2024
8 tasks
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