Class Common
- 
                    
                    - All Implemented Interfaces:
 
 public final class CommonCreated by Djamil on 03/05/2017. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public enumCommon.RfStatusAn enum to repr the macstate of the pandwarf public enumCommon.RfPowerAmplifierModePossible values for RF power amplifiers public enumCommon.RfAntennaModepublic enumCommon.RfTaskPossibe RF task sent in GollumDongleActivityEvent, to indicate PandwaRF is busy doing something on RF 
 - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description public static StringMODULATION_ASK_OOKpublic static StringMODULATION_2_FSKpublic static StringMODULATION_4_FSKpublic static StringMODULATION_GFSKpublic static StringMODULATION_MSKpublic static HashMap<String, Integer>modulationMappublic final static intRF_POWER_AMPLIFIERS_ACTION_ALL_OFFpublic final static intRF_TX_POWER_AMPLIFIER_ACTION_ONpublic final static intRF_RX_POWER_AMPLIFIER_ACTION_ONpublic final static intRF_TX_RX_POWER_AMPLIFIER_ACTION_ONpublic final static intRF_TX_POWER_AMPLIFIER_ACTION_ON_TXpublic final static intRF_RX_POWER_AMPLIFIER_ACTION_ON_RXpublic final static intRF_TX_RX_POWER_AMPLIFIER_ACTION_ON_TX_RXpublic final static intRF_ANT_POWER_ENABLEpublic final static intRF_ANT_POWER_DISABLEpublic final static intRF_ANT_POWER_AMPLIFIERS_MASKpublic final static intRF_ANT_ANTENNA_POWER_MASK
 - 
                                
                            
                                Constructor SummaryConstructors Constructor Description Common()
 - 
                                
                            
                                Method SummaryModifier and Type Method Description static Common.RfPowerAmplifierModegetRfPowerAmplifierMode(int mode)static Common.RfAntennaModegetRfAntennaMode(int mode)static intgetModulationValue(String modulation)Convert a string describing a modulation into an integer value that can be used with GollumDongle methods. static booleanisModulation(int modulation)Indicates if the given value is recognized as a modulation static StringgetModulationName(int modulation)Convert an integer describing a modulation into a textual String value. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        getRfPowerAmplifierModestatic Common.RfPowerAmplifierMode getRfPowerAmplifierMode(int mode) 
 - 
                                        getRfAntennaModestatic Common.RfAntennaMode getRfAntennaMode(int mode) 
 - 
                                        getModulationValuestatic int getModulationValue(String modulation) Convert a string describing a modulation into an integer value that can be used with GollumDongle methods. Possible values are: "ASK/OOK": {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_ASK_OOK}, "2-FSK": {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_2FSK}, "4-FSK: {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_4FSK}, "GFSK": {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_GFSK}, "MSK": {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_MSK} - Parameters:
- modulation- as a String
- Returns:
- modulation value from a string, {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_ASK_OOK} if unknown modulation string 
 
 - 
                                        isModulationstatic boolean isModulation(int modulation) Indicates if the given value is recognized as a modulation 
 - 
                                        getModulationNamestatic String getModulationName(int modulation) Convert an integer describing a modulation into a textual String value. Possible values are <String, Integer>: "ASK/OOK": {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_ASK_OOK}, "2-FSK": {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_2FSK}, "4-FSK: {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_4FSK}, "GFSK": {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_GFSK}, "MSK": {@value com.comthings.gollum.api.gollumandroidlib.GollumDongle#MODULATION_MSK} - Parameters:
- modulation- as an integer.
- Returns:
- modulation in String format. 
 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-