Internal RX attenuator ad9371

Hi!
I used to NO-OS driver
How can I switch on RX1 and RX2 internal attenuators 15 dB (index 224 in gain table)
I edited this structure in configure.c:

static mykonosRxGainControl_t rxGainControl =
{
MGC, /* Current Rx gain control mode setting*/
224, /* Rx1 Gain Index, can be used in different ways for manual and AGC gain control*/
224, /* Rx2 Gain Index, can be used in different ways for manual and AGC gain control*/
224, /* Max gain index for the currently loaded Rx1 Gain table*/
195, /* Min gain index for the currently loaded Rx1 Gain table*/
224, /* Max gain index for the currently loaded Rx2 Gain table*/
195, /* Min gain index for the currently loaded Rx2 Gain table*/
0, /* Stores Rx1 RSSI value read back from the Mykonos*/
0 /* Stores Rx2 RSSI value read back from the Mykonos*/
};

and edited headless.c:

if ((mykError = MYKONOS_setRx1ManualGain(&mykDevice, 224)) != MYKONOS_ERR_OK) {
errorString = getMykonosErrorMessage(mykError);
goto error;
}

if ((mykError = MYKONOS_setRx2ManualGain(&mykDevice, 224)) != MYKONOS_ERR_OK) {
errorString = getMykonosErrorMessage(mykError);
goto error;
}

but rx gain didn't change: I saw on logic analiser, that signal level not changed



added details about RX signal
[edited by: DmitriiS at 10:32 AM (GMT 0) on 25 Apr 2019]