OpenCSD - CoreSight Trace Decode Library
0.14.0
|
Go to the documentation of this file.
35 #ifndef ARM_TRC_CMP_CFG_STM_H_INCLUDED
36 #define ARM_TRC_CMP_CFG_STM_H_INCLUDED
116 uint32_t IDmask = 0x007F0000;
118 m_cfg.
reg_tcsr |= (((uint32_t)traceID) << 16) & IDmask;
126 m_bHWTraceEn = (((m_cfg.
reg_feat1r & 0xC0000) == 0x80000) && ((m_cfg.
reg_tcsr & 0x8) == 0x8));
131 return (uint8_t)((m_cfg.
reg_tcsr >> 16) & 0x7F);
136 return (uint8_t)(m_cfg.
reg_devid & 0xFF);
159 #endif // ARM_TRC_CMP_CFG_STM_H_INCLUDED
const uint16_t getMaxChannelIdx() const
Get the maximum channel index.
STMConfig & operator=(const ocsd_stm_cfg *p_cfg)
Base class for configuration data on CoreSight trace component.
const uint8_t getMaxMasterIdx() const
Get the maximum master index.
bool getHWTraceEn() const
return true if HW trace is present and enabled.
void setTraceID(const uint8_t traceID)
Set the CoreSight trace ID.
void setHWTraceFeat(const hw_event_feat_t hw_feat)
set usage of STM HW event trace.
@ HwEvent_Unknown_Disabled
const uint16_t getHWTraceMasterIdx() const
Get the master used for HW event trace.
STMConfig()
Constructor - creates a default configuration.
virtual const uint8_t getTraceID() const
Get the CoreSight trace ID.
enum _hw_event_feat hw_event_feat_t
STM hardware configuration data.