Package com.kosdev.kos.core.service.udev
Class UdevSerialConfig
java.lang.Object
com.kosdev.kos.core.service.udev.UdevSerialConfig
Serial configuration for probing serial devices. The baud rate
must be configured, but all other values default to -1, meaning
they will be ignored. To adjust any particular config setting,
determing the actual termios setting value and set the corresponding
property. This does not support deltas (masking flags). This means
that the actual termios structure value needs to be determined
first and then set accordingly.
- Since:
- 7
- Version:
- 9
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UdevSerialConfig
public UdevSerialConfig()Default constructor.- Since:
- 7
-
UdevSerialConfig
public UdevSerialConfig(int baud) Baud rate constructor. This leaves all other settings unconfigured which is no parity, 8 bits, 1 stop bit (N81) which matches most default serial hardware.- Parameters:
baud- the baud rate- Since:
- 9
-
-
Method Details
-
getBaud
public int getBaud() -
getCflag
public int getCflag() -
getOflag
public int getOflag() -
getIflag
public int getIflag() -
getLflag
public int getLflag() -
getVmin
public short getVmin() -
getVtime
public short getVtime() -
setBaud
- Returns:
this.
-
setCflag
- Returns:
this.
-
setOflag
- Returns:
this.
-
setIflag
- Returns:
this.
-
setLflag
- Returns:
this.
-
setVmin
- Returns:
this.
-
setVtime
- Returns:
this.
-