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

adrv9002 ensm improv #504

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

adrv9002 ensm improv #504

wants to merge 5 commits into from

Commits on Aug 12, 2024

  1. plugins: adrv9002: fix updating ensm in pin mode

    With commit 54efaad ("plugins: adrv9002: constrain RSSI reads") a bug
    was introduced for TX ports since we stop checking, in the periodic
    update function, the ensm value in case the port is in pin mode.
    Therefore the widget was never being updated even if the RF state
    changed.
    
    Signed-off-by: Nuno Sa <[email protected]>
    nunojsa committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    a77946e View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. plugins: adrv9002: only read RSSI if RF is enabled

    If some port is in any other state than rf_enabled when the plugin
    initialized or a new profile is loaded, we still try to read the RSSI
    level which will fail. Hence, just skip that read if not in the proper
    state.
    
    Signed-off-by: Nuno Sa <[email protected]>
    nunojsa committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    7a5614b View commit details
    Browse the repository at this point in the history
  2. iio_widget: fix iio_widget_update_value() arg name

    Change the argument 'ensm' to 'attr_name' as 'ensm' is specific to
    plugins like adrv9002. Hence use a generic name.
    
    Signed-off-by: Nuno Sa <[email protected]>
    nunojsa committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    b97790f View commit details
    Browse the repository at this point in the history
  3. plugins: adrv9002: improve init on port_en_mode

    Check, at the plugin initialization, if the port enable mode is set to
    pin. If it is, change the ensm widget sensitivity in the same way we do
    it in save_port_en().
    
    Signed-off-by: Nuno Sa <[email protected]>
    nunojsa committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    9f0cb47 View commit details
    Browse the repository at this point in the history
  4. plugins: adrv9002: allow control RF state in pin mode

    There's now the possibility of still controlling the port RF enable
    state mode even if the port mode is set to pin. That's possible in case
    the driver is in control of the pin controlling the port. Hence, let's
    check if the driver supports that at the plugin initialization and act
    accordingly. To check it we do the following:
    
     1) Move the port to pin mode if in spi mod;.
     2) Change the RF state mode to rf_enabled;
     3) If success, then we allow changing the RF state even in pin mode;
    
    Signed-off-by: Nuno Sa <[email protected]>
    nunojsa committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    5236df1 View commit details
    Browse the repository at this point in the history