Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add java constant for non-standard baud rate 921600 #177

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/java/jssc/SerialPort.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public class SerialPort {
public static final int BAUDRATE_128000 = 128000;
/** Baud rate 256000 symbols/second **/
public static final int BAUDRATE_256000 = 256000;
/** Baud rate 921600 symbols/second.
* WARN: Only some hosts support non-standard baud rates! Use this
* baud rate only if you can ensure your host and device properly
* supports it. Have a look at return value of
* {@link SerialNativeInterface#setParams(long,int,int,int,int,boolean,boolean,int)}. */
public static final int BAUDRATE_921600 = 921600;

/** Five (5) data bits per byte **/
public static final int DATABITS_5 = 5;
Expand Down