Skip to content

Commit

Permalink
Add java constant for non-standard baud rate 921600
Browse files Browse the repository at this point in the history
Fixes: #176
  • Loading branch information
hiddenalpha committed Nov 27, 2024
1 parent 8dd99a4 commit f5c1f66
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit f5c1f66

Please sign in to comment.