Enum BaudRate

  • All Implemented Interfaces:
    Serializable, Comparable<BaudRate>

    public enum BaudRate
    extends Enum<BaudRate>
    Defines some commonly used bits/second rates (BPS != Baud, but Baud often is used synonymously for BPS and gives a much better class name than BPS).
    • Enum Constant Detail

      • BPS_75

        public static final BaudRate BPS_75
      • BPS_110

        public static final BaudRate BPS_110
      • BPS_150

        public static final BaudRate BPS_150
      • BPS_300

        public static final BaudRate BPS_300
      • BPS_600

        public static final BaudRate BPS_600
      • BPS_1200

        public static final BaudRate BPS_1200
      • BPS_1800

        public static final BaudRate BPS_1800
      • BPS_2400

        public static final BaudRate BPS_2400
      • BPS_4800

        public static final BaudRate BPS_4800
      • BPS_7200

        public static final BaudRate BPS_7200
      • BPS_9600

        public static final BaudRate BPS_9600
      • BPS_14400

        public static final BaudRate BPS_14400
      • BPS_19200

        public static final BaudRate BPS_19200
      • BPS_38400

        public static final BaudRate BPS_38400
      • BPS_56000

        public static final BaudRate BPS_56000
      • BPS_57600

        public static final BaudRate BPS_57600
      • BPS_115200

        public static final BaudRate BPS_115200
      • BPS_128000

        public static final BaudRate BPS_128000
      • BPS_256000

        public static final BaudRate BPS_256000
      • BPS_960000_FTDI

        public static final BaudRate BPS_960000_FTDI
      • BPS_1000000_FTDI

        public static final BaudRate BPS_1000000_FTDI
      • BPS_1200000_FTDI

        public static final BaudRate BPS_1200000_FTDI
      • BPS_1500000_FTDI

        public static final BaudRate BPS_1500000_FTDI
      • BPS_2000000_FTDI

        public static final BaudRate BPS_2000000_FTDI
      • BPS_3000000_FTDI

        public static final BaudRate BPS_3000000_FTDI
    • Method Detail

      • values

        public static BaudRate[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BaudRate c : BaudRate.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BaudRate valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getBitsPerSecond

        public int getBitsPerSecond()
        Retrieves the bits per second.
        Returns:
        The bits/second.