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);
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);
STM trace packet with packet printing functionality.
const ocsd_stm_pkt_type getPktType() const
const bool isTSPkt() const
void setD16Payload(const uint16_t value)
void onVersionPkt(const ocsd_stm_ts_type type)
void setMaster(const uint8_t master)
const bool isMarkerPkt() const
virtual void toString(std::string &str) const
virtual const void * c_pkt() const
return the underlying C API packet structure
const uint16_t getChannel() const
void setD32Payload(const uint32_t value)
const uint32_t getD32Val() const
const uint16_t getD16Val() const
void setTS(const uint64_t ts_val, const uint8_t updatedBits)
void updateErrType(const ocsd_stm_pkt_type err_type)
void setD4Payload(const uint8_t value)
void setChannel(const uint16_t channel, const bool b8Bit)
void setD64Payload(const uint64_t value)
StmTrcPacket & operator=(const ocsd_stm_pkt *p_pkt)
const uint8_t getMaster() const
const uint64_t getTSVal() const
const ocsd_stm_pkt_type getPktErrType() const
void initNextPacket()
Initialise state for next packet.
void setPacketType(const ocsd_stm_pkt_type type, const bool bMarker)
const uint64_t getD64Val() const
const bool isBadPacket() const
const ocsd_stm_ts_type getTSType() const
const uint8_t getD4Val() const
const uint8_t getD8Val() const
virtual void toStringFmt(const uint32_t fmtFlags, std::string &str) const
void setD8Payload(const uint8_t value)
void initStartState()
Initialise packet state at start of decoder.
Class to provide trace element strings for printing.
enum _ocsd_stm_ts_type ocsd_stm_ts_type
enum _ocsd_stm_pkt_type ocsd_stm_pkt_type
ocsd_stm_pkt_type err_type
union _ocsd_stm_pkt::@28 payload
OpenCSD : Standard printable element base class.