Enum RxtxChannelConfig.Paritybit

java.lang.Object
java.lang.Enum<RxtxChannelConfig.Paritybit>
io.netty.channel.rxtx.RxtxChannelConfig.Paritybit
All Implemented Interfaces:
Serializable, Comparable<RxtxChannelConfig.Paritybit>
Enclosing interface:
RxtxChannelConfig

public static enum RxtxChannelConfig.Paritybit extends Enum<RxtxChannelConfig.Paritybit>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    An even parity bit will be sent with each data character, ie. will be set to 1 if the data character contains an odd number of bits set to 1.
    A mark parity bit (ie. always 1) will be sent with each data character
    No parity bit will be sent with each data character at all
    An odd parity bit will be sent with each data character, ie. will be set to 1 if the data character contains an even number of bits set to 1.
    A space parity bit (ie. always 0) will be sent with each data character
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    valueOf(int value)
    Returns the enum constant of this type with the specified name.
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NONE

      public static final RxtxChannelConfig.Paritybit NONE
      No parity bit will be sent with each data character at all
    • ODD

      public static final RxtxChannelConfig.Paritybit ODD
      An odd parity bit will be sent with each data character, ie. will be set to 1 if the data character contains an even number of bits set to 1.
    • EVEN

      public static final RxtxChannelConfig.Paritybit EVEN
      An even parity bit will be sent with each data character, ie. will be set to 1 if the data character contains an odd number of bits set to 1.
    • MARK

      public static final RxtxChannelConfig.Paritybit MARK
      A mark parity bit (ie. always 1) will be sent with each data character
    • SPACE

      public static final RxtxChannelConfig.Paritybit SPACE
      A space parity bit (ie. always 0) will be sent with each data character
  • Method Details

    • values

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

      public static RxtxChannelConfig.Paritybit 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
    • value

      public int value()
    • valueOf

      public static RxtxChannelConfig.Paritybit valueOf(int value)
      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:
      value - 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