UG-1828 Preliminary Technical Data
Rev. PrC | Page 172 of 338
Table 71. adi_adrv9001_GainControlCfg_t Structure Definition
Parameter Description Min Value
Max
Value
Default
Value
peakWaitTime Number of gain control clock cycles to wait before enabling
peak detectors after a gain change.
0 31 4
maxGainIndex Maximum gain index allowed. Must be greater than
minGainIndex and be a valid gain index.
195 255 255
minGainIndex Minimum gain index allowed. Must be less than
maxGainIndex and be a valid gain index.
195 255 195
gainUpdateCounter Is used as a decision period, with the detectors reset on this
period. Gain changes in AGC mode can also be synchronized
to this period (the expiry of this counter). The full period is a
combination of the gainUpdateCounter and
slowLoopSettlingDelay and a number of AGC cycles.
Depends on
Overload
Detector
Settings
4194303
AGC_CLK
Cycles
11520
attackDelay_us The duration the AGC should be held in reset when the Rx
path is enabled.
0 63 10
Number of AGC clock cycles to wait after a gain change
before the AGC will change gain again.
lowThreshPreventGainInc Only relevant in Peak and Power Detect AGC operation.
1: If AGC is in Peak and Power Detect Mode, then gain
increments requested by the power detector are prevented if
there are sufficient peaks (APD/HB Low Threshold Exceeded
Count) above the apdLowThresh or
hbUnderRangeHighThresh.
0: apdLowThresh and hbUnderRangeHighThresh are don’t
cares for gain recovery.
0 1 0
changeGainIfThreshHigh Applicable in both peak and peak and power detect modes.
0: Gain changes will wait for the expiry of the gain update
counter if a high threshold count has been exceeded on
either the APD or HB detector.
1: Gain changes will occur immediately when initiated by HB.
Gain changes initiated by the APD will wait for the gain
update to expire.
2: Gain changes will occur immediately when initiated by
APD. Gain changes initiated by HB will wait for the gain
update to expire.
3: Gain changes will occur immediately when initiated by
APD or HB detectors.
0 3 3
1: AGC in Peak AGC mode, power-based gain changes are
disabled.
0: AGC in Peak and Power AGC mode where both Peak
Detectors and Power Detectors are used.
resetOnRxon 1: AGC state machine is reset when Rx is disabled. The AGC
gain setting will use the “resetOnRxonGainIndex” after
resuming the operation.
0: AGC state machine maintains its state when Rx is disabled
and the last AGC gain index will be used after resuming the
operation.
0 1 0
resetOnRxonGainIndex The AGC index to start with when “resetOnRxon” is set as 1. 195 255 255
enableSyncPulseForGainCounter 1: Allows synchronization of AGC Gain Update Counter to the
time-slot boundary. GPIO setup required.
0: AGC Gain Update Counter free runs.
0 1 0
enableFastRecoveryLoop 1: Enables the fast recovery AGC functionality using the HB
overload detector. Only applicable in Peak Detect Mode.
0: AGC fast recovery is not enabled.
0 1 0
Structure containing all the power detector settings.
peak Structure containing all the peak detector settings. N/A N/A N/A
extLna Structure containing all external LNA settings N/A N/A N/A