Skip to content

Commit

Permalink
ADRV9002: Update to check interface gain available only when connecte…
Browse files Browse the repository at this point in the history
…d to device

Signed-off-by: Pagadarai <Srikanth.Pagadarai@analog.com>
  • Loading branch information
SrikanthPagadarai committed Oct 9, 2024
1 parent 1e81162 commit 1d4be43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions +adi/+ADRV9002/Rx.m
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@

% Check InterfaceGainChannel0
function set.InterfaceGainChannel0(obj, value)
mustBeMember(value,obj.InterfaceGainAvailableChannel0);
obj.InterfaceGainChannel0 = value;
if obj.ConnectedToDevice
mustBeMember(value,obj.InterfaceGainAvailableChannel0);
id = 'voltage0';
if strcmpi(obj.DigitalGainControlModeChannel0,'spi') &&...
strcmpi(obj.ENSMModeChannel0,'rf_enabled')
Expand All @@ -378,9 +378,9 @@
end
% Check InterfaceGainChannel1
function set.InterfaceGainChannel1(obj, value)
mustBeMember(value,obj.InterfaceGainAvailableChannel1);
obj.InterfaceGainChannel1 = value;
if obj.ConnectedToDevice
mustBeMember(value,obj.InterfaceGainAvailableChannel1);
id = 'voltage1';
if strcmpi(obj.DigitalGainControlModeChannel1,'spi') &&...
strcmpi(obj.ENSMModeChannel1,'rf_enabled')
Expand Down

0 comments on commit 1d4be43

Please sign in to comment.