Class Common

  • All Implemented Interfaces:

    
    public final class Common
    
                        

    Created by Djamil on 03/05/2017.

    • Constructor Detail

      • Common

        Common()
    • Method Detail

      • getModulationValue

         static 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

      • isModulation

         static boolean isModulation(int modulation)

        Indicates if the given value is recognized as a modulation

      • getModulationName

         static 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.