Orbcode Trace functions library
|
TPIU configuration options. More...
#include <tpiu.h>
Public Attributes | |
TpiuProtocol | Protocol |
Selected protocol. More... | |
bool | FormattingEnabled |
Include TPIU framining in output data. More... | |
int | SwoPrescaler |
Prescaler for SWO output data. More... | |
uint8_t | TracePortWidth |
Number of bits in parallel trace port. More... | |
TPIU configuration options.
TpiuProtocol TpiuOptions::Protocol |
Selected protocol.
Not every protocol might be available on each MCU, refer to vendor documentation for details. For parallel trace, specify trace port width in TracePortWidth field. For SWO protocol, specify baudrate in SwoPrescaler field.
bool TpiuOptions::FormattingEnabled |
Include TPIU framining in output data.
TPIU can output data from ITM/ETM without any additional formating (false
) or wrap it in additional layer (true
). That additional layer allows to identify trace source that produced it each packet as it include TraceBusID value (which is set when configuring ITM or ETM).
Remember that receiving tools probably will need to know if formatting is enabled and if it is enabled - TraceBusID of each source
int TpiuOptions::SwoPrescaler |
Prescaler for SWO output data.
When one of SWO protocols is selected, this field will determine output speed. For Manchester encoding receiver should automatically detect data rate, for UART receiver needs to know exact baudrate. Baudrate is calculated as: \(Baudrate = \frac{TraceClock}{SwoPrescaler}\)
uint8_t TpiuOptions::TracePortWidth |
Number of bits in parallel trace port.
When using parallel trace protocol it is possible to define number of data lines used to outputing data.