This structure is used to set or get RF-ADC threshold settings.
u32 UpdateThreshold;
u32 ThresholdMode[2];
u32 ThresholdAvgVal[2];
u32 ThresholdUnderVal[2];
u32 ThresholdOverVal[2];
Description
- u32 UpdateThreshold
- Selects which threshold to update.
XRFDC_UPDATE_THRESHOLD_*
represents valid values.
Macro | Description |
---|---|
XRFDC_UPDATE_THRESHOLD_0 | Update for Threshold0 |
XRFDC_UPDATE_THRESHOLD_1 | Update for Threshold1 |
XRFDC_UPDATE_THRESHOLD_BOTH | Update for Threshold0 and Threshold1 |
- u32 ThresholdMode[2]
- Entry 0 is for Threshold0 and 1 for Threshold1. Range: 0 to 3 (0-OFF, 1-sticky-over, 2-sticky-under and 3-hysteresis)
- u32 ThresholdAvgVal[2]
- Threshold average value. Entry 0 is for Threshold0 and 1 for Threshold1.
- u32 ThresholdUnderVal[2]
- Under threshold value. Entry 0 is for Threshold0 and 1 for Threshold1.
- u32 ThresholdOverVal[2]
- Over threshold value. Entry 0 is for Threshold0 and 1 for Threshold1.
Note: Threshold0 and Threshold1 in the driver correspond to Threshold1 and
Threshold2 in the IP respectively.