Class WinBase.DCB

  • Enclosing interface:
    WinBase

    public static class WinBase.DCB
    extends Structure
    Defines the control setting for a serial communications device.
  • wReserved

    public WinDef.WORD wReserved
    Reserved; must be zero.
  • XonLim

    public 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.
  • XoffLim

    public 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.
  • ByteSize

    public WinDef.BYTE ByteSize
    The number of bits in the bytes transmitted and received.
  • Constructor Detail

    • DCB

      public DCB()
  • Method Detail

    • getFieldOrder

      protected java.util.List<java.lang.String> getFieldOrder()
      Description copied from class: Structure
      Return this Structure's field names in their proper order. For example,
      
       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.
      Specified by:
      getFieldOrder in class Structure
      Returns:
      ordered list of field names