Package com.sun.jna.platform.win32
Class WinBase.DCB.DCBControllBits
java.lang.Object
java.lang.Number
com.sun.jna.IntegerType
com.sun.jna.platform.win32.WinDef.DWORD
com.sun.jna.platform.win32.WinBase.DCB.DCBControllBits
- All Implemented Interfaces:
- NativeMapped,- Serializable,- Comparable<WinDef.DWORD>
- Enclosing class:
- WinBase.DCB
Type is used to handle the bitfield of the DBC structure.
- See Also:
- 
Field SummaryFields inherited from class com.sun.jna.platform.win32.WinDef.DWORDSIZE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanbooleanintintbooleanbooleangetfInX()booleangetfNull()booleangetfOutX()booleanbooleanbooleanintbooleanvoidsetfAbortOnError(boolean fAbortOnError) If this member is TRUE, the driver terminates all read and write operations with an error status if an error occurs.
 The driver will not accept any further communications operations until the application has acknowledged the error by calling the ClearCommError function.voidsetfBinary(boolean fBinary) If this member is TRUE, binary mode is enabled.
 Windows does not support nonbinary mode transfers, so this member must be TRUE.voidsetfDsrSensitivity(boolean fDsrSensitivity) If this member is TRUE, the communications driver is sensitive to the state of the DSR signal.
 The driver ignores any bytes received, unless the DSR modem input line is high.voidsetfDtrControl(int fOutxDsrFlow) The DTR (data-terminal-ready) flow control.voidsetfErrorChar(boolean fErrorChar) Indicates whether bytes received with parity errors are replaced with the character specified by the ErrorChar member.
 If this member is TRUE and the fParity member is TRUE, replacement occurs.voidsetfInX(boolean fInX) Indicates whether XON/XOFF flow control is used during reception.
 If this member is TRUE, the XoffChar character is sent when the input buffer comes within XoffLim bytes of being full, and the XonChar character is sent when the input buffer comes within XonLim bytes of being empty.voidsetfNull(boolean fNull) If this member is TRUE, null bytes are discarded when received.voidsetfOutX(boolean fOutX) Indicates whether XON/XOFF flow control is used during transmission.voidsetfOutxCtsFlow(boolean fOutxCtsFlow) If this member is TRUE, the CTS (clear-to-send) signal is monitored for output flow control.
 If this member is TRUE and CTS is turned off, output is suspended until CTS is sent again.voidsetfOutxDsrFlow(boolean fOutxDsrFlow) If this member is TRUE, the DSR (data-set-ready) signal is monitored for output flow control.
 If this member is TRUE and DSR is turned off, output is suspended until DSR is sent again.voidsetfParity(boolean fParity) If this member is TRUE, parity checking is performed and errors are reported.voidsetfRtsControl(int fRtsControl) The RTS (request-to-send) flow control.voidsetfTXContinueOnXoff(boolean fTXContinueOnXoff) If this member is TRUE, transmission continues after the input buffer has come within XoffLim bytes of being full and the driver has transmitted the XoffChar character to stop receiving bytes.
 If this member is FALSE, transmission does not continue until the input buffer is within XonLim bytes of being empty and the driver has transmitted the XonChar character to resume reception.toString()Methods inherited from class com.sun.jna.platform.win32.WinDef.DWORDcompareTo, getHigh, getLowMethods inherited from class com.sun.jna.IntegerTypecompare, compare, compare, doubleValue, equals, floatValue, fromNative, hashCode, intValue, longValue, nativeType, setValue, toNativeMethods inherited from class java.lang.NumberbyteValue, shortValue
- 
Constructor Details- 
DCBControllBitspublic DCBControllBits()
 
- 
- 
Method Details- 
toString- Overrides:
- toStringin class- IntegerType
 
- 
getfAbortOnErrorpublic boolean getfAbortOnError()
- 
getfBinarypublic boolean getfBinary()
- 
getfDsrSensitivitypublic boolean getfDsrSensitivity()
- 
getfDtrControlpublic int getfDtrControl()
- 
getfErrorCharpublic boolean getfErrorChar()
- 
getfInXpublic boolean getfInX()
- 
getfNullpublic boolean getfNull()
- 
getfOutXpublic boolean getfOutX()
- 
getfOutxCtsFlowpublic boolean getfOutxCtsFlow()
- 
getfOutxDsrFlowpublic boolean getfOutxDsrFlow()
- 
getfParitypublic boolean getfParity()
- 
getfRtsControlpublic int getfRtsControl()
- 
getfDummy2public int getfDummy2()
- 
getfTXContinueOnXoffpublic boolean getfTXContinueOnXoff()
- 
setfAbortOnErrorpublic void setfAbortOnError(boolean fAbortOnError) If this member is TRUE, the driver terminates all read and write operations with an error status if an error occurs.
 The driver will not accept any further communications operations until the application has acknowledged the error by calling the ClearCommError function.- Parameters:
- fAbortOnError-
 
- 
setfBinarypublic void setfBinary(boolean fBinary) If this member is TRUE, binary mode is enabled.
 Windows does not support nonbinary mode transfers, so this member must be TRUE.- Parameters:
- fBinary-
 
- 
setfDsrSensitivitypublic void setfDsrSensitivity(boolean fDsrSensitivity) If this member is TRUE, the communications driver is sensitive to the state of the DSR signal.
 The driver ignores any bytes received, unless the DSR modem input line is high.- Parameters:
- fDsrSensitivity-
 
- 
setfDtrControlpublic void setfDtrControl(int fOutxDsrFlow) The DTR (data-terminal-ready) flow control. This member can be one of the following values.WinBase.DTR_CONTROL_DISABLEWinBase.DTR_CONTROL_ENABLEWinBase.DTR_CONTROL_HANDSHAKE- Parameters:
- fOutxDsrFlow- value to set
 
- 
setfErrorCharpublic void setfErrorChar(boolean fErrorChar) Indicates whether bytes received with parity errors are replaced with the character specified by the ErrorChar member.
 If this member is TRUE and the fParity member is TRUE, replacement occurs.- Parameters:
- fErrorChar-
 
- 
setfInXpublic void setfInX(boolean fInX) Indicates whether XON/XOFF flow control is used during reception.
 If this member is TRUE, the XoffChar character is sent when the input buffer comes within XoffLim bytes of being full, and the XonChar character is sent when the input buffer comes within XonLim bytes of being empty.- Parameters:
- fInX-
 
- 
setfNullpublic void setfNull(boolean fNull) If this member is TRUE, null bytes are discarded when received.- Parameters:
- fNull-
 
- 
setfOutXpublic void setfOutX(boolean fOutX) Indicates whether XON/XOFF flow control is used during transmission.
 If this member is TRUE, transmission stops when the XoffChar character is received and starts again when the XonChar character is received.- Parameters:
- fOutX-
 
- 
setfOutxCtsFlowpublic void setfOutxCtsFlow(boolean fOutxCtsFlow) If this member is TRUE, the CTS (clear-to-send) signal is monitored for output flow control.
 If this member is TRUE and CTS is turned off, output is suspended until CTS is sent again.- Parameters:
- fOutxCtsFlow-
 
- 
setfOutxDsrFlowpublic void setfOutxDsrFlow(boolean fOutxDsrFlow) If this member is TRUE, the DSR (data-set-ready) signal is monitored for output flow control.
 If this member is TRUE and DSR is turned off, output is suspended until DSR is sent again.- Parameters:
- fOutxDsrFlow-
 
- 
setfParitypublic void setfParity(boolean fParity) If this member is TRUE, parity checking is performed and errors are reported.- Parameters:
- fParity-
 
- 
setfRtsControlpublic void setfRtsControl(int fRtsControl) The RTS (request-to-send) flow control. This member can be one of the following values.WinBase.RTS_CONTROL_DISABLEWinBase.RTS_CONTROL_ENABLEWinBase.RTS_CONTROL_HANDSHAKEWinBase.RTS_CONTROL_TOGGLE- Parameters:
- fRtsControl-
 
- 
setfTXContinueOnXoffpublic void setfTXContinueOnXoff(boolean fTXContinueOnXoff) If this member is TRUE, transmission continues after the input buffer has come within XoffLim bytes of being full and the driver has transmitted the XoffChar character to stop receiving bytes.
 If this member is FALSE, transmission does not continue until the input buffer is within XonLim bytes of being empty and the driver has transmitted the XonChar character to resume reception.- Parameters:
- fTXContinueOnXoff-
 
 
-