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