OpenCSD - CoreSight Trace Decode Library
1.3.3
|
STM trace packet with packet printing functionality. More...
#include <trc_pkt_elem_stm.h>
Public Member Functions | |
StmTrcPacket () | |
~StmTrcPacket () | |
StmTrcPacket & | operator= (const ocsd_stm_pkt *p_pkt) |
virtual const void * | c_pkt () const |
return the underlying C API packet structure More... | |
void | initStartState () |
Initialise packet state at start of decoder. More... | |
void | initNextPacket () |
Initialise state for next packet. More... | |
void | setPacketType (const ocsd_stm_pkt_type type, const bool bMarker) |
void | updateErrType (const ocsd_stm_pkt_type err_type) |
void | setMaster (const uint8_t master) |
void | setChannel (const uint16_t channel, const bool b8Bit) |
void | setTS (const uint64_t ts_val, const uint8_t updatedBits) |
void | onVersionPkt (const ocsd_stm_ts_type type) |
void | setD4Payload (const uint8_t value) |
void | setD8Payload (const uint8_t value) |
void | setD16Payload (const uint16_t value) |
void | setD32Payload (const uint32_t value) |
void | setD64Payload (const uint64_t value) |
const bool | isMarkerPkt () const |
const bool | isTSPkt () const |
const ocsd_stm_pkt_type | getPktType () const |
const ocsd_stm_pkt_type | getPktErrType () const |
const uint8_t | getMaster () const |
const uint16_t | getChannel () const |
const ocsd_stm_ts_type | getTSType () const |
const uint64_t | getTSVal () const |
const uint8_t | getD4Val () const |
const uint8_t | getD8Val () const |
const uint16_t | getD16Val () const |
const uint32_t | getD32Val () const |
const uint64_t | getD64Val () const |
const bool | isBadPacket () const |
virtual void | toString (std::string &str) const |
virtual void | toStringFmt (const uint32_t fmtFlags, std::string &str) const |
![]() | |
TrcPacketBase () | |
virtual | ~TrcPacketBase () |
![]() | |
trcPrintableElem () | |
virtual | ~trcPrintableElem () |
Additional Inherited Members | |
![]() | |
static void | getValStr (std::string &valStr, const int valTotalBitSize, const int valValidBits, const uint64_t value, const bool asHex=true, const int updateBits=0) |
![]() | |
ocsd_stm_pkt_type | type |
uint8_t | master |
uint16_t | channel |
uint64_t | timestamp |
uint8_t | pkt_ts_bits |
uint8_t | pkt_has_ts |
ocsd_stm_ts_type | ts_type |
uint8_t | pkt_has_marker |
union { | |
uint8_t D8 | |
uint16_t D16 | |
uint32_t D32 | |
uint64_t D64 | |
} | payload |
ocsd_stm_pkt_type | err_type |
STM trace packet with packet printing functionality.
This class allows for the update and access of the current STM trace packet, implementing the STM protocol rules as appropriate. Maintains the intra packet state as well as updates on a per packet basis.
Based on data structure ocsd_stm_pkt.
Definition at line 53 of file trc_pkt_elem_stm.h.
StmTrcPacket::StmTrcPacket | ( | ) |
|
inline |
Definition at line 57 of file trc_pkt_elem_stm.h.
|
inlinevirtual |
return the underlying C API packet structure
Implements TrcPacketBase.
Definition at line 61 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 190 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 215 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 220 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 205 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 225 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 210 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 185 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 180 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 175 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 195 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 200 of file trc_pkt_elem_stm.h.
void StmTrcPacket::initNextPacket | ( | ) |
Initialise state for next packet.
void StmTrcPacket::initStartState | ( | ) |
Initialise packet state at start of decoder.
|
inline |
Definition at line 230 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 165 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 170 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 133 of file trc_pkt_elem_stm.h.
StmTrcPacket& StmTrcPacket::operator= | ( | const ocsd_stm_pkt * | p_pkt | ) |
|
inline |
Definition at line 125 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 150 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 155 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 140 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 160 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 145 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 119 of file trc_pkt_elem_stm.h.
|
inline |
Definition at line 106 of file trc_pkt_elem_stm.h.
void StmTrcPacket::setTS | ( | const uint64_t | ts_val, |
const uint8_t | updatedBits | ||
) |
|
virtual |
Reimplemented from trcPrintableElem.
|
virtual |
Reimplemented from trcPrintableElem.
|
inline |
Definition at line 113 of file trc_pkt_elem_stm.h.