Preliminary Technical Data UG-1828
Rev. PrC | Page 171 of 338
Figure 160 describes a high level flow chart of Rx gain control programming. Note the final step is to configure any GPIOs as necessary
such as GPIO inputs which allow the AGC gain update counter to be synchronized to a slot boundary, or DGPIOs to directly control the
gain index. Note the configure of the DGPIO pins for retrieving signal detectors information is included in the API command
adi_adrv9001_Rx_GainControl_Configure(). The operation of these has been described earlier.
Figure 160. Gain Control Programming Flowchart
Gain Control Data Structures
Figure 161 shows the member structure of adi_adrv9001_GainControlCfg_t, and its substructures, adi_adrv9001_PeakDetector_t,
adi_adrv9001_PowerDetector_t and adi_adrv9001_ExtLna_t. Each of the parameters are briefly explained in Table 71 to Table 74 the
wider context of these parameter settings being outlined in the previous relevant sections.
adi_adrv9001_GainControlCfg_t
+peakWaitTime
+maxGainIndex
+minGainIndex
+gainUpdateCounter
+attackDelay_us
+slowLoop SettlingDelay
+lowThres hPreventGainInc
+changeGainIfThresh High
+agcMode
+resetOnRxon
+resetOnRxonGainIndex
+enableSyncPulseForGainCounter
+enableFastRecoveryLoop
adi_adrv9001_PeakDetector_t
+agcUnderRangeLowInterval
+agcUnderRangeMidInterval
+agcUnderRangeHighInterval
+apdHighThresh
+apdLowThresh
+apdU pperThreshP eakExceeded Count
+apdLowerThres hPeakExceededCount
+apdG ainStepAttack
+apdG ainStepRecovery
+enableHbOverload
+hbOverloadDurationCount
+hbOverloadThreshCount
+hbHighTh resh
+hbUnderRangeLowThresh
+hbUnderRangeMidThresh
+hbUnderRangeHighThresh
+hbUpperThreshPeakExceededCount
+hbUnderRangeHighThresh ExceededCount
+hbGainStepHighRecovery
+hbGainStepLowRecovery
+hbGainStepMidRecovery
+hbGainStepAttack
+hbOverloadPowerMod e
+hbUnderRangeMidThreshExceededCount
+hbUnderRangeLowThreshExceededCount
+feedback_apd_low_hb_low
+feedback_apd_high_hb_high
adi_adrv9001_PowerDetector_t
+powerEnableMeasurement
+underRangeHighPowerThresh
+underRangeLowPowerThresh
+underRangeHighPowerGainStepRecovery
+underRangeLowPowerGainStepRecovery
+powerMeasurementDuration
+powerMeasurementDelay
+rxTddPowerMeasDuration
+rxTddPowerMeasDelay
+overRangeHighPowerThresh
+overRangeLowPowerThresh
+overRangeHighPowerGainStepAttack
+overRangeLowPowerGainStepAttack
+feedback_inner_high_inner_low
+feedback_apd_high_apd_low
adi_adrv9001_ExtLna_t
+gpio
+powerDown
+settlingDelay
+peak
+power
+extLna
Figure 161. Member Listing of adi_adrv9001_GainControlCfg_t Data Structure
GAIN CONTROL
SETUP START
CONFIGURE GAIN TABLE,
AGC STRUCTURES
RUN
adi_adrv9001_Rx_GainControl_Configure( )
RUN
adi_adrv9001_Rx_GainControl_Mode_Set( )
CONFIGURE GAIN
CONTROL GPIOS
GAIN CONTROL SETUP
COMPLETE
24159-1
18