| 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 java.util.List<java.lang.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, writeFieldpublic WinDef.DWORD DCBlength
public WinDef.DWORD BaudRate
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_256000public 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.EVENPARITYWinBase.ODDPARITYWinBase.NOPARITYWinBase.SPACEPARITYWinBase.MARKPARITYpublic WinDef.BYTE StopBits
WinBase.ONESTOPBITWinBase.ONE5STOPBITSWinBase.TWOSTOPBITSpublic char XonChar
public char XoffChar
public char ErrorChar
public char EofChar
public char EvtChar
public WinDef.WORD wReserved1
protected java.util.List<java.lang.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