Package com.sun.jna.platform.win32
Class WinBase.DCB
- java.lang.Object
- 
- com.sun.jna.Structure
- 
- com.sun.jna.platform.win32.WinBase.DCB
 
 
- 
- Enclosing interface:
- WinBase
 
 @FieldOrder({"DCBlength","BaudRate","controllBits","wReserved","XonLim","XoffLim","ByteSize","Parity","StopBits","XonChar","XoffChar","ErrorChar","EofChar","EvtChar","wReserved1"}) public static class WinBase.DCB extends Structure Defines the control setting for a serial communications device.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classWinBase.DCB.DCBControllBitsType is used to handle the bitfield of the DBC structure.- 
Nested classes/interfaces inherited from class com.sun.jna.StructureStructure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
 
- 
 - 
Field SummaryFields Modifier and Type Field Description WinDef.DWORDBaudRateThe baud rate at which the communications device operates.WinDef.BYTEByteSizeThe number of bits in the bytes transmitted and received.WinBase.DCB.DCBControllBitscontrollBitsContains all the bit wise setting entries.WinDef.DWORDDCBlengthThe length of the structure, in bytes.charEofCharThe value of the character used to signal the end of data.charErrorCharThe value of the character used to replace bytes received with a parity error.charEvtCharThe value of the character used to signal an event.WinDef.BYTEParityThe parity scheme to be used.WinDef.BYTEStopBitsThe number of stop bits to be used.WinDef.WORDwReservedReserved; must be zero.WinDef.WORDwReserved1Reserved; do not use.charXoffCharThe value of the XOFF character for both transmission and reception.WinDef.WORDXoffLimThe minimum number of free bytes allowed in the input buffer before flow control is activated to inhibit the sender.charXonCharThe value of the XON character for both transmission and reception.WinDef.WORDXonLimThe minimum number of bytes in use allowed in the input buffer before flow control is activated to allow transmission by the sender.- 
Fields inherited from class com.sun.jna.StructureALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
- 
 - 
Constructor SummaryConstructors Constructor Description DCB()
 - 
Method Summary- 
Methods inherited from class com.sun.jna.StructureallocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
 
- 
 
- 
- 
- 
Field Detail- 
DCBlengthpublic WinDef.DWORD DCBlength The length of the structure, in bytes. The caller must set this member to sizeof(DCB).
 - 
BaudRatepublic WinDef.DWORD BaudRate The baud rate at which the communications device operates. This member can be an actual baud rate value, or one of the following indexes.WinBase.CBR_110WinBase.CBR_300WinBase.CBR_600WinBase.CBR_1200WinBase.CBR_2400WinBase.CBR_4800WinBase.CBR_9600WinBase.CBR_14400WinBase.CBR_19200WinBase.CBR_38400WinBase.CBR_56000WinBase.CBR_128000WinBase.CBR_256000
 - 
controllBitspublic WinBase.DCB.DCBControllBits controllBits Contains all the bit wise setting entries.
 - 
wReservedpublic WinDef.WORD wReserved Reserved; must be zero.
 - 
XonLimpublic WinDef.WORD XonLim The minimum number of bytes in use allowed in the input buffer before flow control is activated to allow transmission by the sender. This assumes that either XON/XOFF, RTS, or DTR input flow control is specified in the fInX, fRtsControl, or fDtrControl members.
 - 
XoffLimpublic WinDef.WORD XoffLim The minimum number of free bytes allowed in the input buffer before flow control is activated to inhibit the sender. Note that the sender may transmit characters after the flow control signal has been activated, so this value should never be zero. This assumes that either XON/XOFF, RTS, or DTR input flow control is specified in the fInX, fRtsControl, or fDtrControl members. The maximum number of bytes in use allowed is calculated by subtracting this value from the size, in bytes, of the input buffer.
 - 
ByteSizepublic WinDef.BYTE ByteSize The number of bits in the bytes transmitted and received.
 - 
Paritypublic WinDef.BYTE Parity The parity scheme to be used. This member can be one of the following values.WinBase.EVENPARITYWinBase.ODDPARITYWinBase.NOPARITYWinBase.SPACEPARITYWinBase.MARKPARITY
 - 
StopBitspublic WinDef.BYTE StopBits The number of stop bits to be used. This member can be one of the following values.WinBase.ONESTOPBITWinBase.ONE5STOPBITSWinBase.TWOSTOPBITS
 - 
XonCharpublic char XonChar The value of the XON character for both transmission and reception.
 - 
XoffCharpublic char XoffChar The value of the XOFF character for both transmission and reception.
 - 
ErrorCharpublic char ErrorChar The value of the character used to replace bytes received with a parity error.
 - 
EofCharpublic char EofChar The value of the character used to signal the end of data.
 - 
EvtCharpublic char EvtChar The value of the character used to signal an event.
 - 
wReserved1public WinDef.WORD wReserved1 Reserved; do not use.
 
- 
 
-