Package drivers.ser

Class BaudRate

java.lang.Object
drivers.ser.BaudRate

public class BaudRate extends Object
Set baud rate for Port(s).
  • Constructor Details

    • BaudRate

      public BaudRate()
  • Method Details

    • getBaudRate

      public static final int getBaudRate(int baud)
      Gets the baud rate to be set. If this is somehow wrong, it already sets the CPU error.
      Parameters:
      baud - the baud rate wished
      Returns:
      the baud rate, or -1 if error.