comparison rvinterf/include/localsock.h @ 266:cb833ff54d88

rvinterf: CLI2RVI_RESET_PACKET_RX command implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 06 Feb 2014 01:10:13 +0000
parents 2f285f20d617
children a5c8f48003cd
comparison
equal deleted inserted replaced
265:4c416868524a 266:cb833ff54d88
19 19
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 25
25 /* 26 /*
26 * The first two commands (CLI2RVI_WANT_RVTRACE and CLI2RVI_WANT_MUXPROTO) 27 * The first two commands (CLI2RVI_WANT_RVTRACE and CLI2RVI_WANT_MUXPROTO)
27 * are the means by which client programs inform rvinterf that they are 28 * are the means by which client programs inform rvinterf that they are
28 * interested in receiving copies of certain packets coming from the target. 29 * interested in receiving copies of certain packets coming from the target.
36 * 37 *
37 * The CLI2RVI_WANT_MUXPROTO opcode needs to be followed by one byte 38 * The CLI2RVI_WANT_MUXPROTO opcode needs to be followed by one byte
38 * identifying the RVTMUX protocol of interest, i.e., the first byte of the 39 * identifying the RVTMUX protocol of interest, i.e., the first byte of the
39 * packets exchanged between the host and the target, e.g., 0x12 for L1 traces 40 * packets exchanged between the host and the target, e.g., 0x12 for L1 traces
40 * as defined in pktmux.h, for a total message length of 2 bytes. 41 * as defined in pktmux.h, for a total message length of 2 bytes.
42 *
43 * 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 * reset; the command message consists of just the opcode.
41 * 46 *
42 * The last two commands (CLI2RVI_PKT_TO_TARGET and CLI2RVI_RAWBYTES_TO_TARGET) 47 * The last two commands (CLI2RVI_PKT_TO_TARGET and CLI2RVI_RAWBYTES_TO_TARGET)
43 * cause data payload to be sent to the target serial port. Payload following 48 * cause data payload to be sent to the target serial port. Payload following
44 * CLI2RVI_PKT_TO_TARGET (must not exceed MAX_PKT_TO_TARGET) is sent with the 49 * CLI2RVI_PKT_TO_TARGET (must not exceed MAX_PKT_TO_TARGET) is sent with the
45 * proper packet encapsulation per TI; bytes following 50 * proper packet encapsulation per TI; bytes following