63 void initCSID(
const uint8_t CSID) { m_CSID = CSID; };
86 const int getAdjustedIdx(
int idxIn)
const;
90 typedef struct _elemPtr {
95 elemPtr_t *m_pElemArray;
107 inline const int OcsdGenElemList::getAdjustedIdx(
int idxIn)
const
109 if(idxIn >= m_elemArraySize)
110 idxIn -= m_elemArraySize;
139 m_numUsed -= m_numPend;
150 m_sendIf = pGenElemIf;
Maintain a list of elements to be output.
void pendLastNElem(int numPend)
Last element to be pended prior to cancel/commit decision.
void reset()
reset the element list.
const int getNumElem() const
return the total number of elements on the stack (inlcuding any pended ones).
void initSendIf(componentAttachPt< ITrcGenElemIn > *pGenElemIf)
ocsd_datapath_resp_t sendElements()
const bool elemToSend() const
true if any none-pending elements left to send.
const ocsd_gen_trc_elem_t getElemType(const int entryN) const
get the type for the nth element in the stack (0 indexed)
OcsdTraceElement * getNextElem(const ocsd_trc_index_t trc_pkt_idx)
get next free element on the stack (add one to the output)
void cancelPendElem()
cancel the last pended element on the stack.
void initCSID(const uint8_t CSID)
void commitAllPendElem()
commit all pended elements.
const int numPendElem() const
return the number of pended elements.
Generic trace element class.
OpenCSD : Component attachment point interface class.
enum _ocsd_gen_trc_elem_t ocsd_gen_trc_elem_t
uint32_t ocsd_trc_index_t
enum _ocsd_datapath_resp_t ocsd_datapath_resp_t
OpenCSD : Decoder Generic trace element output class.