13#ifndef TRC_STREAM_PORT_H
14#define TRC_STREAM_PORT_H
17#include <trcStreamPortConfig.h>
23#define TRC_USE_INTERNAL_BUFFER 1
25#define TRC_INTERNAL_EVENT_BUFFER_WRITE_MODE (TRC_CFG_STREAM_PORT_INTERNAL_BUFFER_WRITE_MODE)
27#define TRC_INTERNAL_EVENT_BUFFER_TRANSFER_MODE (TRC_CFG_STREAM_PORT_INTERNAL_BUFFER_TRANSFER_MODE)
29#define TRC_INTERNAL_BUFFER_CHUNK_SIZE (TRC_CFG_STREAM_PORT_INTERNAL_BUFFER_CHUNK_SIZE)
31#define TRC_INTERNAL_BUFFER_CHUNK_TRANSFER_AGAIN_SIZE_LIMIT (TRC_CFG_STREAM_PORT_INTERNAL_BUFFER_CHUNK_TRANSFER_AGAIN_SIZE_LIMIT)
33#define TRC_INTERNAL_BUFFER_CHUNK_TRANSFER_AGAIN_COUNT_LIMIT (TRC_CFG_STREAM_PORT_INTERNAL_BUFFER_CHUNK_TRANSFER_AGAIN_COUNT_LIMIT)
35#define TRC_STREAM_PORT_USB_BUFFER_SIZE ((((TRC_CFG_STREAM_PORT_USB_BUFFER_SIZE) + sizeof(TraceUnsignedBaseType_t) - 1) / sizeof(TraceUnsignedBaseType_t)) * sizeof(TraceUnsignedBaseType_t))
36#define TRC_STREAM_PORT_INTERNAL_BUFFER_SIZE ((((TRC_CFG_STREAM_PORT_INTERNAL_BUFFER_SIZE) + sizeof(TraceUnsignedBaseType_t) - 1) / sizeof(TraceUnsignedBaseType_t)) * sizeof(TraceUnsignedBaseType_t))
40 uint8_t buffer[(TRC_STREAM_PORT_USB_BUFFER_SIZE) + (TRC_STREAM_PORT_INTERNAL_BUFFER_SIZE) +
sizeof(TraceUnsignedBaseType_t)];
43traceResult prvTraceCDCReceive(
void* data, uint32_t uiSize, int32_t* piBytesReceived);
45traceResult prvTraceCDCTransmit(
void* pvData, uint32_t uiSize, int32_t* piBytesSent);
68#define xTraceStreamPortAllocate xTraceInternalEventBufferAlloc
82#define xTraceStreamPortCommit xTraceInternalEventBufferAllocCommit
94#define xTraceStreamPortWriteData prvTraceCDCTransmit
106#define xTraceStreamPortReadData prvTraceCDCReceive
108#define xTraceStreamPortOnEnable(uiStartOption) ((void)(uiStartOption), TRC_SUCCESS)
110#define xTraceStreamPortOnDisable() (TRC_SUCCESS)
112#define xTraceStreamPortOnTraceBegin() (TRC_SUCCESS)
114#define xTraceStreamPortOnTraceEnd() (TRC_SUCCESS)
A structure representing the trace stream port buffer.
Definition: trcStreamPort.h:93