Event Recorder and Component Viewer  Version 1.4.0
MDK Debugger Views for Status and Event Information
 All Files Functions Macros Groups Pages
EventRecorder.h File Reference

Macros

#define EventLevelError   0x00000U
 Run-time error in the component. More...
 
#define EventLevelAPI   0x10000U
 API function call. More...
 
#define EventLevelOp   0x20000U
 Internal operation. More...
 
#define EventLevelDetail   0x30000U
 Additional detailed information of operations. More...
 
#define EvtStatistics_No   0xEFU
 Component number for Event Execution Statistics in EventID. More...
 
#define EvtPrintf_No   0xFEU
 Component number for Redirecting printf output in EventID. More...
 
#define EventID(level, comp_no, msg_no)   ((level & 0x30000U) | ((comp_no & 0xFFU) << 8) | (msg_no & 0xFFU))
 Composed event id from level, component number and message number. More...
 
#define EventRecordNone   0x00U
 Record events is disabled. More...
 
#define EventRecordError   0x01U
 Record events with level EventLevelError. More...
 
#define EventRecordAPI   0x02U
 Record events with level EventLevelAPI. More...
 
#define EventRecordOp   0x04U
 Record events with level EventLevelOp. More...
 
#define EventRecordDetail   0x08U
 Record events with level EventLevelDetail. More...
 
#define EventRecordAll   0x0FU
 Record events with any level. More...
 
#define EventStartA(slot)   EventRecord2 (0xEF00U+EventLevelError+(slot), ((uint32_t) __FILE__), __LINE__)
 
#define EventStartAv(slot, v1, v2)   EventRecord2 (0xEF10U+EventLevelError+((slot) & 0xFU), (v1), (v2))
 
#define EventStopA(slot)   EventRecord2 (0xEF20U+EventLevelError+((slot) & 0xFU), ((uint32_t) __FILE__), __LINE__)
 
#define EventStopAv(slot, v1, v2)   EventRecord2 (0xEF30U+EventLevelError+((slot) & 0xFU), (v1), (v2))
 
#define EventStartB(slot)   EventRecord2 (0xEF40U+EventLevelAPI+((slot) & 0xFU), ((uint32_t) __FILE__), __LINE__)
 
#define EventStartBv(slot, v1, v2)   EventRecord2 (0xEF50U+EventLevelAPI+((slot) & 0xFU), (v1), (v2))
 
#define EventStopB(slot)   EventRecord2 (0xEF60U+EventLevelAPI+((slot) & 0xFU), ((uint32_t) __FILE__), __LINE__)
 
#define EventStopBv(slot, v1, v2)   EventRecord2 (0xEF70U+EventLevelAPI+((slot) & 0xFU), (v1), (v2))
 
#define EventStartC(slot)   EventRecord2 (0xEF80U+EventLevelOp+((slot) & 0xFU), ((uint32_t) __FILE__), __LINE__)
 
#define EventStartCv(slot, v1, v2)   EventRecord2 (0xEF90U+EventLevelOp+((slot) & 0xFU), (v1), (v2))
 
#define EventStopC(slot)   EventRecord2 (0xEFA0U+EventLevelOp+((slot) & 0xFU), ((uint32_t) __FILE__), __LINE__)
 
#define EventStopCv(slot, v1, v2)   EventRecord2 (0xEFB0U+EventLevelOp+((slot) & 0xFU), (v1), (v2))
 
#define EventStartD(slot)   EventRecord2 (0xEFC0U+EventLevelDetail+((slot) & 0xFU), ((uint32_t) __FILE__), __LINE__)
 
#define EventStartDv(slot, v1, v2)   EventRecord2 (0xEFD0U+EventLevelDetail+((slot) & 0xFU), (v1), (v2))
 
#define EventStopD(slot)   EventRecord2 (0xEFE0U+EventLevelDetail+((slot) & 0xFU), ((uint32_t) __FILE__), __LINE__)
 
#define EventStopDv(slot, v1, v2)   EventRecord2 (0xEFF0U+EventLevelDetail+((slot) & 0xFU), (v1), (v2))
 

Functions

uint32_t EventRecorderTimerSetup (void)
 Setup timer hardware. More...
 
uint32_t EventRecorderTimerGetFreq (void)
 Get timer frequency. More...
 
uint32_t EventRecorderTimerGetCount (void)
 Get timer count. More...
 
uint32_t EventRecorderInitialize (uint32_t recording, uint32_t start)
 Initialize Event Recorder. More...
 
uint32_t EventRecorderEnable (uint32_t recording, uint32_t comp_start, uint32_t comp_end)
 Enable recording of events with specified level and component range. More...
 
uint32_t EventRecorderDisable (uint32_t recording, uint32_t comp_start, uint32_t comp_end)
 Disable recording of events with specified level and component range. More...
 
uint32_t EventRecorderStart (void)
 Start event recording. More...
 
uint32_t EventRecorderStop (void)
 Stop event recording. More...
 
uint32_t EventRecorderClockUpdate (void)
 Update Event Recorder timestamp clock. More...
 
uint32_t EventRecordData (uint32_t id, const void *data, uint32_t len)
 Record an event with variable data size. More...
 
uint32_t EventRecord2 (uint32_t id, uint32_t val1, uint32_t val2)
 Record an event with two 32-bit data values. More...
 
uint32_t EventRecord4 (uint32_t id, uint32_t val1, uint32_t val2, uint32_t val3, uint32_t val4)
 Record an event with four 32-bit data values. More...