public class AgcConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
curveSlope
Digital AGC slope.
|
private boolean |
enabled
Whether to enable AGC.
|
private int |
maxDigitalGaindB
Maximum digital AGC gain in dB.
|
private int |
targetleveldB
Target digital AGC level in dB.
|
private boolean |
useAnalogMode
Whether to use analog AGC working mode.
|
| Constructor and Description |
|---|
AgcConfig() |
AgcConfig(boolean enabled,
boolean useAnalogMode,
int maxDigitalGaindB,
int targetleveldB,
int curveSlope)
Constructs an AgcConfig object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurveSlope()
Gets the digital AGC slope.
|
int |
getMaxDigitalGaindB()
Gets the maximum digital AGC gain in dB.
|
int |
getTargetleveldB()
Gets the target digital AGC level in dB.
|
boolean |
isEnabled()
Checks if AGC is enabled.
|
boolean |
isUseAnalogMode()
Checks if analog AGC mode is used.
|
void |
setCurveSlope(int curveSlope)
Sets the digital AGC slope.
|
void |
setEnabled(boolean enabled)
Sets whether to enable AGC.
|
void |
setMaxDigitalGaindB(int maxDigitalGaindB)
Sets the maximum digital AGC gain in dB.
|
void |
setTargetleveldB(int targetleveldB)
Sets the target digital AGC level in dB.
|
void |
setUseAnalogMode(boolean useAnalogMode)
Sets whether to use analog AGC mode.
|
java.lang.String |
toString() |
private boolean enabled
private boolean useAnalogMode
private int maxDigitalGaindB
private int targetleveldB
private int curveSlope
public AgcConfig()
public AgcConfig(boolean enabled,
boolean useAnalogMode,
int maxDigitalGaindB,
int targetleveldB,
int curveSlope)
enabled - Whether to enable AGC. true to enable,
false to disable (default).useAnalogMode - Whether to use analog AGC mode. true for
analog, false for digital (default).maxDigitalGaindB - Maximum digital AGC gain in dB. Recommended: [6, 30].
Default: 12.targetleveldB - Target digital AGC level in dB. Recommended: [-18,
0]. Default: -6.curveSlope - Digital AGC slope. Recommended: [3, 30]. Default: 17.public boolean isEnabled()
true if AGC is enabled, false otherwise.public void setEnabled(boolean enabled)
enabled - true to enable AGC, false to disable.public boolean isUseAnalogMode()
true if analog mode is used, false if digital mode is
used.public void setUseAnalogMode(boolean useAnalogMode)
useAnalogMode - true to use analog mode, false to use
digital mode.public int getMaxDigitalGaindB()
public void setMaxDigitalGaindB(int maxDigitalGaindB)
maxDigitalGaindB - The maximum digital gain in dB. Recommended: [6, 30].public int getTargetleveldB()
public void setTargetleveldB(int targetleveldB)
targetleveldB - The target level in dB. Recommended: [-18, 0].public int getCurveSlope()
public void setCurveSlope(int curveSlope)
curveSlope - The curve slope. Recommended: [3, 30].public java.lang.String toString()
toString in class java.lang.Object