Module com.pi4j

Enum Class Baud

java.lang.Object
java.lang.Enum<Baud>
com.pi4j.io.serial.Baud
All Implemented Interfaces:
Serializable, Comparable<Baud>, Constable

public enum Baud extends Enum<Baud>

Baud class.

Version:
$Id: $Id
Author:
Robert Savage (http://www.savagehomeautomation.com)
  • Enum Constant Details

    • _50

      public static final Baud _50
    • _75

      public static final Baud _75
    • _110

      public static final Baud _110
    • _134

      public static final Baud _134
    • _150

      public static final Baud _150
    • _200

      public static final Baud _200
    • _300

      public static final Baud _300
    • _600

      public static final Baud _600
    • _1200

      public static final Baud _1200
    • _1800

      public static final Baud _1800
    • _2400

      public static final Baud _2400
    • _4800

      public static final Baud _4800
    • _9600

      public static final Baud _9600
    • _19200

      public static final Baud _19200
    • _38400

      public static final Baud _38400
    • _57600

      public static final Baud _57600
    • _115200

      public static final Baud _115200
    • _230400

      public static final Baud _230400
  • Method Details

    • values

      public static Baud[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Baud valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()

      getValue.

      Returns:
      a int.
    • value

      public int value()

      value.

      Returns:
      a int.
    • getInstance

      public static Baud getInstance(int baud_rate)

      getInstance.

      Parameters:
      baud_rate - a int.
      Returns:
      a Baud object.