Package drivers.ser
Class BaudRate
java.lang.Object
drivers.ser.BaudRate
Set baud rate for Port(s).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final int
getBaudRate
(int baud) Gets the baud rate to be set.
-
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.
-