Skip to content

Commit

Permalink
ADRV9002 Rx: Updated setupinit to set interface gains after checking …
Browse files Browse the repository at this point in the history
…available gains

Signed-off-by: Pagadarai <[email protected]>
  • Loading branch information
SrikanthPagadarai committed Oct 18, 2024
1 parent 0845b78 commit cb3e1fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions +adi/+ADRV9002/Rx.m
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,12 @@ function setupInit(obj)
end

if strcmpi(obj.DigitalGainControlModeChannel0,'spi') && strcmpi(obj.ENSMModeChannel0,'rf_enabled')
mustBeMember(obj.InterfaceGainChannel0,obj.InterfaceGainAvailableChannel0);
obj.setAttributeRAW('voltage0','interface_gain',obj.InterfaceGainChannel0,false);
end

if strcmpi(obj.DigitalGainControlModeChannel1,'spi') && strcmpi(obj.ENSMModeChannel1,'rf_enabled') && channelsAval == 2
mustBeMember(obj.InterfaceGainChannel1,obj.InterfaceGainAvailableChannel1);
obj.setAttributeRAW('voltage1','interface_gain',obj.InterfaceGainChannel1,false);
end

Expand Down

0 comments on commit cb3e1fe

Please sign in to comment.