Jump to content

DCBINFO: Difference between revisions

From EDM2
Ak120 (talk | contribs)
m Ak120 moved page OS2 API:DataType:DCBINFO to DCBINFO
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
== DCBINFO ==
Device control block information data structure.
Device control block information data structure.


=== Type ===
=== Type ===
  [[OS2 API:DataType:USHORT|USHORT]]  usWriteTimeout
  [[USHORT]]  usWriteTimeout
  [[OS2 API:DataType:USHORT|USHORT]] usReadTimeout
  USHORT  usReadTimeout
  [[OS2 API:DataType:BYTE|BYTE]]    fbCtlHndShake
  [[BYTE]]    fbCtlHndShake
  [[OS2 API:DataType:BYTE|BYTE]]   fbFlowReplace
  BYTE    fbFlowReplace
  [[OS2 API:DataType:BYTE|BYTE]]   fbTimeout
  BYTE    fbTimeout
  [[OS2 API:DataType:BYTE|BYTE]]   bErrorReplacementChar
  BYTE    bErrorReplacementChar
  [[OS2 API:DataType:BYTE|BYTE]]   bBreakReplacementChar
  BYTE    bBreakReplacementChar
  [[OS2 API:DataType:BYTE|BYTE]]   bXONChar
  BYTE    bXONChar
  [[OS2 API:DataType:BYTE|BYTE]]   bXOFFChar
  BYTE    bXOFFChar


==== C Declaration Method ====
===C Declaration Method===
typedef struct
typedef struct


Line 19: Line 18:
;usWriteTimeout
;usWriteTimeout
:Time period used for Write Timeout processing. Specifies the time period used for Write Timeout processing. See Note 8 of ASYNC_SETDCBINFO. The value is in .01 second units based on zero (where 0 = .01 seconds).
:Time period used for Write Timeout processing. Specifies the time period used for Write Timeout processing. See Note 8 of ASYNC_SETDCBINFO. The value is in .01 second units based on zero (where 0 = .01 seconds).
;usReadTimeout
;usReadTimeout
:Time period used for Read Timeout processing. Specifies the time period used for Read Timeout processing. See Note 9 of ASYNC_SETDCBINFO. The value is in .01 second units based on zero (where 0 =.01 seconds).
:Time period used for Read Timeout processing. Specifies the time period used for Read Timeout processing. See Note 9 of ASYNC_SETDCBINFO. The value is in .01 second units based on zero (where 0 =.01 seconds).
;fbCtlHndShake
;fbCtlHndShake
:HandShake Control flag. Has the following bits:
:HandShake Control flag. Has the following bits:
Line 37: Line 34:
::Bit 6 - Enable input sensitivity using DSR
::Bit 6 - Enable input sensitivity using DSR
::Bit 7 - Reserved. Must be 0.
::Bit 7 - Reserved. Must be 0.
 
;fbFlowReplace:Flow Control flag. Has the following bits:
;fbFlowReplace
:Flow Control flag. Has the following bits:
::Bit 0    Enable Automatic Transmit Flow Control (XON/XOFF)
::Bit 0    Enable Automatic Transmit Flow Control (XON/XOFF)
::Bit 1    Enable Automatic Receive Flow Control (XON/XOFF)
::Bit 1    Enable Automatic Receive Flow Control (XON/XOFF)
Line 54: Line 49:
:::1      0      Input handshaking
:::1      0      Input handshaking
:::1      1      Toggling on transmit
:::1      1      Toggling on transmit
;fbTimeout
;fbTimeout
:Timeout flag. Has the following bits:
:Timeout flag. Has the following bits:
Line 79: Line 73:
:::1 = 16 characters
:::1 = 16 characters
:See ASYNC_SETDCBINFO for field definitions.
:See ASYNC_SETDCBINFO for field definitions.
 
;bErrorReplacementChar:Error Replacement Character. Value in the range 00h-FFh. See note 5 of SYNC_SETDCBINFO
;bErrorReplacementChar
;bBreakReplacementChar:Break Replacement Character. Value in the range 00h-FFh. See note 7 of ASYNC_SETDCBINFO
:Error Replacement Character. Value in the range 00h-FFh. See note 5 of SYNC_SETDCBINFO
;bXONChar:Character XON. Value in the range 00h-FFh. See note 2 of ASYNC_SETDCBINFO
 
;bXOFFChar:Character XOFF. Value in the range 00h-FFh. See note 2 of ASYNC_SETDCBINFO
;bBreakReplacementChar
:Break Replacement Character. Value in the range 00h-FFh. See note 7 of ASYNC_SETDCBINFO
;bXONChar
:Character XON. Value in the range 00h-FFh. See note 2 of ASYNC_SETDCBINFO
 
;bXOFFChar
:Character XOFF. Value in the range 00h-FFh. See note 2 of ASYNC_SETDCBINFO


[[Category:Data type]]
[[Category:Data type]]

Latest revision as of 19:18, 11 March 2018

Device control block information data structure.

Type

USHORT  usWriteTimeout
USHORT  usReadTimeout
BYTE    fbCtlHndShake
BYTE    fbFlowReplace
BYTE    fbTimeout
BYTE    bErrorReplacementChar
BYTE    bBreakReplacementChar
BYTE    bXONChar
BYTE    bXOFFChar

C Declaration Method

typedef struct

Fields

usWriteTimeout
Time period used for Write Timeout processing. Specifies the time period used for Write Timeout processing. See Note 8 of ASYNC_SETDCBINFO. The value is in .01 second units based on zero (where 0 = .01 seconds).
usReadTimeout
Time period used for Read Timeout processing. Specifies the time period used for Read Timeout processing. See Note 9 of ASYNC_SETDCBINFO. The value is in .01 second units based on zero (where 0 =.01 seconds).
fbCtlHndShake
HandShake Control flag. Has the following bits:
Bits 0-1 - DTR Control mode. Has the following:
Bit 1 Bit 0 Description
0 0 Disable
0 1 Enable
1 0 Input handshaking
1 1 Invalid input. Results in a general failure error.
Bit 2 - Reserved. Must be 0.
Bit 3 - Enable output handshaking using CTS
Bit 4 - Enable output handshaking using DSR
Bit 5 - Enable output handshaking using DCD
Bit 6 - Enable input sensitivity using DSR
Bit 7 - Reserved. Must be 0.
fbFlowReplace
Flow Control flag. Has the following bits:
Bit 0 Enable Automatic Transmit Flow Control (XON/XOFF)
Bit 1 Enable Automatic Receive Flow Control (XON/XOFF)
Bit 2 Enable error replacement character
Bit 3 Enable null stripping (remove null bytes)
Bit 4 Enable break replacement character
Bit 5 Automatic Receive Flow Control:
0 = Normal
1 = Full-Duplex
Bits 6-7 RTS Control mode. Has the following:
Bit 7 Bit 6 Description
0 0 Disable
0 1 Enable
1 0 Input handshaking
1 1 Toggling on transmit
fbTimeout
Timeout flag. Has the following bits:
Bit 0 Enable Write Infinite Timeout processing
Bits 1-2 Read Timeout processing. Has the following:
Bit 2 Bit 1 Description
0 1 Normal Read Timeout processing
1 0 Wait-For-Something, Read Timeout processing
1 1 No-Wait, Read Timeout processing
Bits 3-4 Extended Hardware Buffering. Has the following:
Bit 4 Bit 3 Description
0 0 Not supported
0 1 Extended Hardware Buffering Disabled
1 0 Extended Hardware Buffering Enabled
1 1 Automatic Protocol Override
Bits 5-6 Receive Trigger Level. Has the following:
Bit 6 Bit 5 Description
0 0 1 character
0 1 4 characters
1 0 8 characters
1 1 14 characters
Bit 7 Transmit Buffer Load Count
0 = 1 character
1 = 16 characters
See ASYNC_SETDCBINFO for field definitions.
bErrorReplacementChar
Error Replacement Character. Value in the range 00h-FFh. See note 5 of SYNC_SETDCBINFO
bBreakReplacementChar
Break Replacement Character. Value in the range 00h-FFh. See note 7 of ASYNC_SETDCBINFO
bXONChar
Character XON. Value in the range 00h-FFh. See note 2 of ASYNC_SETDCBINFO
bXOFFChar
Character XOFF. Value in the range 00h-FFh. See note 2 of ASYNC_SETDCBINFO