Modifier and Type | Class and Description |
---|---|
static class |
WinBase.DCB.DCBControllBits
Type is used to handle the bitfield of the DBC structure.
|
Structure.ByReference, Structure.ByValue, Structure.StructField
Modifier and Type | Field and Description |
---|---|
WinDef.DWORD |
BaudRate
The baud rate at which the communications device operates.
|
WinDef.BYTE |
ByteSize
The number of bits in the bytes transmitted and received.
|
WinBase.DCB.DCBControllBits |
controllBits
Contains all the bit wise setting entries.
|
WinDef.DWORD |
DCBlength
The length of the structure, in bytes.
|
char |
EofChar
The value of the character used to signal the end of data.
|
char |
ErrorChar
The value of the character used to replace bytes received with a
parity error.
|
char |
EvtChar
The value of the character used to signal an event.
|
WinDef.BYTE |
Parity
The parity scheme to be used.
|
WinDef.BYTE |
StopBits
The number of stop bits to be used.
|
WinDef.WORD |
wReserved
Reserved; must be zero.
|
WinDef.WORD |
wReserved1
Reserved; do not use.
|
char |
XoffChar
The value of the XOFF character for both transmission and reception.
|
WinDef.WORD |
XoffLim
The minimum number of free bytes allowed in the input buffer before
flow control is activated to inhibit the sender.
|
char |
XonChar
The value of the XON character for both transmission and reception.
|
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.
|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Constructor and Description |
---|
DCB() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getFieldOrder()
Return this Structure's field names in their proper order.
|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public WinDef.DWORD DCBlength
public WinDef.DWORD BaudRate
WinBase.CBR_110
WinBase.CBR_300
WinBase.CBR_600
WinBase.CBR_1200
WinBase.CBR_2400
WinBase.CBR_4800
WinBase.CBR_9600
WinBase.CBR_14400
WinBase.CBR_19200
WinBase.CBR_38400
WinBase.CBR_56000
WinBase.CBR_128000
WinBase.CBR_256000
public WinBase.DCB.DCBControllBits controllBits
public WinDef.WORD wReserved
public WinDef.WORD XonLim
public WinDef.WORD XoffLim
public WinDef.BYTE ByteSize
public WinDef.BYTE Parity
WinBase.EVENPARITY
WinBase.ODDPARITY
WinBase.NOPARITY
WinBase.SPACEPARITY
WinBase.MARKPARITY
public WinDef.BYTE StopBits
WinBase.ONESTOPBIT
WinBase.ONE5STOPBITS
WinBase.TWOSTOPBITS
public char XonChar
public char XoffChar
public char ErrorChar
public char EofChar
public char EvtChar
public WinDef.WORD wReserved1
protected List<String> getFieldOrder()
Structure
protected List getFieldOrder() {
return Arrays.asList(new String[] { ... });
}
IMPORTANT
When deriving from an existing Structure subclass, ensure that
you augment the list provided by the superclass, e.g.
protected List getFieldOrder() {
List fields = new ArrayList(super.getFieldOrder());
fields.addAll(Arrays.asList(new String[] { ... }));
return fields;
}
Field order must be explicitly indicated, since the
field order as returned by Class.getFields()
is not
guaranteed to be predictable.getFieldOrder
in class Structure