I have added the following to st.cmd file after configuring the port:
asynSetTraceIOMask(“D1”,0,0x2)
asynSetTraceMask(“D1”,0,0x9)
but the prompt as follows
2018/10/09 10:36:45.340114 D1 Va1: Input "" too short.
2018/10/09 10:36:45.340135 D1 No match for ":"
2018/10/09 10:36:50.340003 D1 Va1: Input "" too short.
2018/10/09 10:36:50.340043 D1 No match for ":"
I have three questions:1) what is the meaning of mask in asynSetTraceIOMask and asynSetTraceMask? 2) I see the definition of the mask in asynDriver.h
|
|
|
|
| /* traceMask definitions*/ |
| #define ASYN_TRACE_ERROR 0x0001 |
| #define ASYN_TRACEIO_DEVICE 0x0002 |
| #define ASYN_TRACEIO_FILTER 0x0004 |
| #define ASYN_TRACEIO_DRIVER 0x0008 |
| #define ASYN_TRACE_FLOW 0x0010 |
| #define ASYN_TRACE_WARNING 0x0020 |
|
|
| /* traceIO mask definitions*/ |
| #define ASYN_TRACEIO_NODATA 0x0000 |
| #define ASYN_TRACEIO_ASCII 0x0001 |
| #define ASYN_TRACEIO_ESCAPE 0x0002 |
| #define ASYN_TRACEIO_HEX 0x0004
|
|