Update of /cvsroot/com0com/hub4com/plugins/serial
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv18456
Modified Files:
comport.cpp
Log Message:
Tracing of HUB_MSG_TYPE_SET_PIN_STATE moved to the trace filter
Index: comport.cpp
===================================================================
RCS file: /cvsroot/com0com/hub4com/plugins/serial/comport.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** comport.cpp 22 Aug 2008 16:57:12 -0000 1.9
--- comport.cpp 28 Aug 2008 16:07:09 -0000 1.10
***************
*** 20,23 ****
--- 20,26 ----
*
* $Log$
+ * Revision 1.10 2008/08/28 16:07:09 vfrolov
+ * Tracing of HUB_MSG_TYPE_SET_PIN_STATE moved to the trace filter
+ *
* Revision 1.9 2008/08/22 16:57:12 vfrolov
* Added
***************
*** 371,383 ****
}
- static FIELD2NAME codeNameTableSetPinState[] = {
- TOFIELD2NAME2(PIN_STATE_, RTS),
- TOFIELD2NAME2(PIN_STATE_, DTR),
- TOFIELD2NAME2(PIN_STATE_, OUT1),
- TOFIELD2NAME2(PIN_STATE_, OUT2),
- TOFIELD2NAME2(PIN_STATE_, BREAK),
- {0, 0, NULL}
- };
-
BOOL ComPort::Write(HUB_MSG *pMsg)
{
--- 374,377 ----
***************
*** 450,462 ****
return FALSE;
! WORD mask = MASK2VAL(pMsg->u.val);
!
! cout << name << " SET_PIN_STATE 0x" << hex << pMsg->u.val << dec << " SET["
! << FieldToName(codeNameTableSetPinState, pMsg->u.val & mask)
! << "] CLR["
! << FieldToName(codeNameTableSetPinState, ~pMsg->u.val & mask)
! << "]" << endl;
!
! mask &= maskOutPins;
if (mask & PIN_STATE_RTS) {
--- 444,448 ----
return FALSE;
! WORD mask = MASK2VAL(pMsg->u.val) & maskOutPins;
if (mask & PIN_STATE_RTS) {
|