Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Added Rx1-Rx2 phase inversion enable enhancement to AD9361 system object. #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SrikanthPagadarai
Copy link
Contributor

No description provided.

@@ -95,6 +95,12 @@
isOutput = false;
end

properties (Hidden)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a logical

Copy link
Contributor

Choose a reason for hiding this comment

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

And probably nontunable

@@ -95,6 +95,12 @@
isOutput = false;
end

properties (Hidden)
%EnableRx1Rx2PhaseInversion
% If enabled, RX1 and RX2 are phase aligned
Copy link
Contributor

Choose a reason for hiding this comment

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

I would recommend being more specific with this comment. Since it might give a wrong impression

'', 'EnableRx1Rx2PhaseInversion');
obj.EnableRx1Rx2PhaseInversion = value;
if obj.ConnectedToDevice
obj.setDebugAttributeLongLong('adi,rx1-rx2-phase-inversion-enable',value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that this won't actually update the part unless initialize is called

@@ -271,7 +286,9 @@ function setupInit(obj)
obj.setAttributeLongLong(id,'frequency',obj.CenterFrequency ,true,4);
% Loopback Mode
obj.setDebugAttributeLongLong('loopback', obj.LoopbackMode);

% Enable Rx1-Rx2 Phase Inversion
obj.setDebugAttributeLongLong('adi,rx1-rx2-phase-inversion-enable', obj.EnableRx1Rx2PhaseInversion);
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't do anything unless CustomAGC is enabled

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants