public final class Common
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Common.RfPowerAmplifierMode
Possible values for RF power amplifiers
|
static class |
Common.RfTask
Possibe RF task sent in GollumDongleActivityEvent, to indicate PandwaRF is busy doing something on RF
|
Modifier and Type | Field and Description |
---|---|
static java.util.HashMap<java.lang.String,java.lang.Integer> |
modulationMap |
static int |
RF_ANT_POWER_DISABLE |
static int |
RF_ANT_POWER_ENABLE |
static int |
RF_POWER_AMPLIFIERS_ACTION_ALL_OFF |
static int |
RF_RX_POWER_AMPLIFIER_ACTION_ON |
static int |
RF_RX_POWER_AMPLIFIER_ACTION_ON_RX |
static int |
RF_TX_POWER_AMPLIFIER_ACTION_ON |
static int |
RF_TX_POWER_AMPLIFIER_ACTION_ON_TX |
static int |
RF_TX_RX_POWER_AMPLIFIER_ACTION_ON |
static int |
RF_TX_RX_POWER_AMPLIFIER_ACTION_ON_TX_RX |
Constructor and Description |
---|
Common() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getModulationName(int modulation)
Convert an integer describing a modulation into a textual String value.
|
static int |
getModulationValue(java.lang.String modulation)
Convert a string describing a modulation into an integer value that can be used with GollumDongle methods.
|
static Common.RfPowerAmplifierMode |
getRfPowerAmplifierMode(int mode) |
public static java.util.HashMap<java.lang.String,java.lang.Integer> modulationMap
public static final int RF_POWER_AMPLIFIERS_ACTION_ALL_OFF
public static final int RF_TX_POWER_AMPLIFIER_ACTION_ON
public static final int RF_RX_POWER_AMPLIFIER_ACTION_ON
public static final int RF_TX_RX_POWER_AMPLIFIER_ACTION_ON
public static final int RF_TX_POWER_AMPLIFIER_ACTION_ON_TX
public static final int RF_RX_POWER_AMPLIFIER_ACTION_ON_RX
public static final int RF_TX_RX_POWER_AMPLIFIER_ACTION_ON_TX_RX
public static final int RF_ANT_POWER_ENABLE
public static final int RF_ANT_POWER_DISABLE
public static Common.RfPowerAmplifierMode getRfPowerAmplifierMode(int mode)
public static int getModulationValue(java.lang.String modulation)
modulation
- as a Stringpublic static java.lang.String getModulationName(int modulation)
modulation
- as an integer.