OpenCSD - CoreSight Trace Decode Library
0.12.1
|
Go to the documentation of this file.
35 #ifndef ARM_TRC_PKT_ELEM_STM_H_INCLUDED
36 #define ARM_TRC_PKT_ELEM_STM_H_INCLUDED
70 void setTS(
const uint64_t ts_val,
const uint8_t updatedBits);
98 virtual void toString(std::string &str)
const;
99 virtual void toStringFmt(
const uint32_t fmtFlags, std::string &str)
const;
103 void pktTypeName(
const ocsd_stm_pkt_type pkt_type, std::string &name, std::string &desc)
const;
115 this->err_type = this->
type;
128 this->channel = (this->channel & 0xFF00) | (
channel & 0xFF);
236 #endif // ARM_TRC_PKT_ELEM_STM_H_INCLUDED
const bool isTSPkt() const
void initStartState()
Initialise packet state at start of decoder.
virtual const void * c_pkt() const
return the underlying C API packet structure
void setMaster(const uint8_t master)
OpenCSD : Standard printable element base class.
const uint64_t getD64Val() const
void setTS(const uint64_t ts_val, const uint8_t updatedBits)
StmTrcPacket & operator=(const ocsd_stm_pkt *p_pkt)
const uint16_t getD16Val() const
void initNextPacket()
Initialise state for next packet.
ocsd_stm_pkt_type err_type
void onVersionPkt(const ocsd_stm_ts_type type)
const uint8_t getD8Val() const
union _ocsd_stm_pkt::@28 payload
const bool isMarkerPkt() const
const ocsd_stm_ts_type getTSType() const
void setD32Payload(const uint32_t value)
STM trace packet with packet printing functionality.
void setD16Payload(const uint16_t value)
Class to provide trace element strings for printing.
const uint16_t getChannel() const
void setD8Payload(const uint8_t value)
const uint64_t getTSVal() const
void setD4Payload(const uint8_t value)
enum _ocsd_stm_ts_type ocsd_stm_ts_type
const uint32_t getD32Val() const
const bool isBadPacket() const
virtual void toStringFmt(const uint32_t fmtFlags, std::string &str) const
const uint8_t getMaster() const
void setPacketType(const ocsd_stm_pkt_type type, const bool bMarker)
virtual void toString(std::string &str) const
const ocsd_stm_pkt_type getPktType() const
void setD64Payload(const uint64_t value)
const ocsd_stm_pkt_type getPktErrType() const
void updateErrType(const ocsd_stm_pkt_type err_type)
void setChannel(const uint16_t channel, const bool b8Bit)
enum _ocsd_stm_pkt_type ocsd_stm_pkt_type
const uint8_t getD4Val() const