1 /*******************************************************************************
\r
2 * Trace Recorder Library for Tracealyzer v4.1.5
\r
3 * Percepio AB, www.percepio.com
\r
7 * The interface definitions for trace streaming ("stream ports").
\r
8 * This "stream port" sets up the recorder to use TCP/IP as streaming channel.
\r
9 * The example is for lwIP.
\r
12 * This file is part of the trace recorder library (RECORDER), which is the
\r
13 * intellectual property of Percepio AB (PERCEPIO) and provided under a
\r
14 * license as follows.
\r
15 * The RECORDER may be used free of charge for the purpose of recording data
\r
16 * intended for analysis in PERCEPIO products. It may not be used or modified
\r
17 * for other purposes without explicit permission from PERCEPIO.
\r
18 * You may distribute the RECORDER in its original source code form, assuming
\r
19 * this text (terms of use, disclaimer, copyright notice) is unchanged. You are
\r
20 * allowed to distribute the RECORDER with minor modifications intended for
\r
21 * configuration or porting of the RECORDER, e.g., to allow using it on a
\r
22 * specific processor, processor family or with a specific communication
\r
23 * interface. Any such modifications should be documented directly below
\r
24 * this comment block.
\r
27 * The RECORDER is being delivered to you AS IS and PERCEPIO makes no warranty
\r
28 * as to its use or performance. PERCEPIO does not and cannot warrant the
\r
29 * performance or results you may obtain by using the RECORDER or documentation.
\r
30 * PERCEPIO make no warranties, express or implied, as to noninfringement of
\r
31 * third party rights, merchantability, or fitness for any particular purpose.
\r
32 * In no event will PERCEPIO, its technology partners, or distributors be liable
\r
33 * to you for any consequential, incidental or special damages, including any
\r
34 * lost profits or lost savings, even if a representative of PERCEPIO has been
\r
35 * advised of the possibility of such damages, or for any claim by any third
\r
36 * party. Some jurisdictions do not allow the exclusion or limitation of
\r
37 * incidental, consequential or special damages, or the exclusion of implied
\r
38 * warranties or limitations on how long an implied warranty may last, so the
\r
39 * above limitations may not apply to you.
\r
41 * Tabs are used for indent in this file (1 tab = 4 spaces)
\r
43 * Copyright Percepio AB, 2018.
\r
45 ******************************************************************************/
\r
47 #ifndef TRC_STREAMING_PORT_H
\r
48 #define TRC_STREAMING_PORT_H
\r
54 int32_t trcTcpRead(void* data, uint32_t size, int32_t *ptrBytesRead);
\r
56 int32_t trcTcpWrite(void* data, uint32_t size, int32_t *ptrBytesWritten);
\r
58 #define TRC_STREAM_PORT_READ_DATA(_ptrData, _size, _ptrBytesRead) trcTcpRead(_ptrData, _size, _ptrBytesRead)
\r
60 #define TRC_STREAM_PORT_WRITE_DATA(_ptrData, _size, _ptrBytesSent) trcTcpWrite(_ptrData, _size, _ptrBytesSent)
\r
66 #endif /* TRC_STREAMING_PORT_H */
\r