FreeCalypso > hg > freecalypso-sw
comparison rvinterf/include/localsock.h @ 871:a5c8f48003cd
rvinterf: client programs can now selectively stop receiving packets of a
particular RVTMUX type
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Fri, 29 May 2015 06:29:38 +0000 |
parents | cb833ff54d88 |
children |
comparison
equal
deleted
inserted
replaced
870:2682003dcba7 | 871:a5c8f48003cd |
---|---|
20 #define CLI2RVI_WANT_RVTRACE 0x00 | 20 #define CLI2RVI_WANT_RVTRACE 0x00 |
21 #define CLI2RVI_WANT_MUXPROTO 0x01 | 21 #define CLI2RVI_WANT_MUXPROTO 0x01 |
22 #define CLI2RVI_PKT_TO_TARGET 0x02 | 22 #define CLI2RVI_PKT_TO_TARGET 0x02 |
23 #define CLI2RVI_RAWBYTES_TO_TARGET 0x03 | 23 #define CLI2RVI_RAWBYTES_TO_TARGET 0x03 |
24 #define CLI2RVI_RESET_PACKET_RX 0x04 | 24 #define CLI2RVI_RESET_PACKET_RX 0x04 |
25 #define CLI2RVI_DROP_MUXPROTO 0x05 | |
25 | 26 |
26 /* | 27 /* |
27 * The first two commands (CLI2RVI_WANT_RVTRACE and CLI2RVI_WANT_MUXPROTO) | 28 * The first two commands (CLI2RVI_WANT_RVTRACE and CLI2RVI_WANT_MUXPROTO) |
28 * are the means by which client programs inform rvinterf that they are | 29 * are the means by which client programs inform rvinterf that they are |
29 * interested in receiving copies of certain packets coming from the target. | 30 * interested in receiving copies of certain packets coming from the target. |
40 * packets exchanged between the host and the target, e.g., 0x12 for L1 traces | 41 * packets exchanged between the host and the target, e.g., 0x12 for L1 traces |
41 * as defined in pktmux.h, for a total message length of 2 bytes. | 42 * as defined in pktmux.h, for a total message length of 2 bytes. |
42 * | 43 * |
43 * The CLI2RVI_RESET_PACKET_RX opcode resets the "interests" previously set | 44 * The CLI2RVI_RESET_PACKET_RX opcode resets the "interests" previously set |
44 * with CLI2RVI_WANT_RVTRACE and/or CLI2RVI_WANT_MUXPROTO. It is a "blanket" | 45 * with CLI2RVI_WANT_RVTRACE and/or CLI2RVI_WANT_MUXPROTO. It is a "blanket" |
45 * reset; the command message consists of just the opcode. | 46 * reset; the command message consists of just the opcode. The |
47 * CLI2RVI_DROP_MUXPROTO command is more specific and undoes the effect of a | |
48 * previous CLI2RVI_WANT_MUXPROTO; it needs to be followed by one byte | |
49 * identifying the RVTMUX protocol in question, just like CLI2RVI_WANT_MUXPROTO. | |
46 * | 50 * |
47 * The last two commands (CLI2RVI_PKT_TO_TARGET and CLI2RVI_RAWBYTES_TO_TARGET) | 51 * The last two commands (CLI2RVI_PKT_TO_TARGET and CLI2RVI_RAWBYTES_TO_TARGET) |
48 * cause data payload to be sent to the target serial port. Payload following | 52 * cause data payload to be sent to the target serial port. Payload following |
49 * CLI2RVI_PKT_TO_TARGET (must not exceed MAX_PKT_TO_TARGET) is sent with the | 53 * CLI2RVI_PKT_TO_TARGET (must not exceed MAX_PKT_TO_TARGET) is sent with the |
50 * proper packet encapsulation per TI; bytes following | 54 * proper packet encapsulation per TI; bytes following |