[Com0com-cvs] hub4com/plugins plugins_api.h,1.12,1.13
The virtual serial port driver for Windows.
Brought to you by:
vfrolov
From: Vyacheslav F. <vf...@us...> - 2008-10-16 06:45:17
|
Update of /cvsroot/com0com/hub4com/plugins In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28465 Modified Files: plugins_api.h Log Message: Added PIN_STATE_* for DCE Added HUB_MSG_TYPE_SET_LSR Index: plugins_api.h =================================================================== RCS file: /cvsroot/com0com/hub4com/plugins/plugins_api.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** plugins_api.h 30 Sep 2008 08:28:32 -0000 1.12 --- plugins_api.h 16 Oct 2008 06:45:05 -0000 1.13 *************** *** 77,80 **** --- 77,86 ---- #define PIN_STATE_OUT1 0x0004 #define PIN_STATE_OUT2 0x0008 + #define SPS_P2V_MST(p) ((BYTE)(((p) & 0xF000) >> 8)) + #define SPS_V2P_MST(v) (((WORD)(BYTE)(v) << 8) & 0xF000) + #define PIN_STATE_CTS SPS_V2P_MST(MODEM_STATUS_CTS) + #define PIN_STATE_DSR SPS_V2P_MST(MODEM_STATUS_DSR) + #define PIN_STATE_RI SPS_V2P_MST(MODEM_STATUS_RI) + #define PIN_STATE_DCD SPS_V2P_MST(MODEM_STATUS_DCD) #define PIN_STATE_BREAK 0x0100 #define HUB_MSG_TYPE_GET_IN_OPTS (6 | HUB_MSG_UNION_TYPE_PVAL) *************** *** 90,95 **** #define SO_O2V_PIN_STATE(o) ((WORD)(o)) #define SO_V2O_PIN_STATE(v) ((DWORD)(WORD)(v)) ! #define SO_SET_BR ((DWORD)1 << 16) ! #define SO_SET_LC ((DWORD)1 << 17) #define HUB_MSG_TYPE_FAIL_IN_OPTS (8 | HUB_MSG_UNION_TYPE_VAL) #define HUB_MSG_TYPE_RBR_STATUS (9 | HUB_MSG_UNION_TYPE_VAL | HUB_MSG_VAL_TYPE_UINT) --- 96,103 ---- #define SO_O2V_PIN_STATE(o) ((WORD)(o)) #define SO_V2O_PIN_STATE(v) ((DWORD)(WORD)(v)) ! #define SO_O2V_LINE_STATUS(o) ((BYTE)((o) >> 16)) ! #define SO_V2O_LINE_STATUS(v) ((DWORD)(BYTE)(v) << 16) ! #define SO_SET_BR ((DWORD)1 << 24) ! #define SO_SET_LC ((DWORD)1 << 25) #define HUB_MSG_TYPE_FAIL_IN_OPTS (8 | HUB_MSG_UNION_TYPE_VAL) #define HUB_MSG_TYPE_RBR_STATUS (9 | HUB_MSG_UNION_TYPE_VAL | HUB_MSG_VAL_TYPE_UINT) *************** *** 105,108 **** --- 113,117 ---- #define HUB_MSG_TYPE_SET_BR (15 | HUB_MSG_UNION_TYPE_VAL | HUB_MSG_VAL_TYPE_UINT) #define HUB_MSG_TYPE_SET_LC (16 | HUB_MSG_UNION_TYPE_VAL | HUB_MSG_VAL_TYPE_LC) + #define HUB_MSG_TYPE_SET_LSR (17 | HUB_MSG_UNION_TYPE_VAL | HUB_MSG_VAL_TYPE_MASK_VAL) /*******************************************************************/ typedef struct _HUB_MSG { |