RT_insight.h 963 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __RT_INSIGHT_H__
  2. #define __RT_INSIGHT_H__
  3. #include "RT_LOG_Print.h"
  4. #include "RT_insight_config.h"
  5. #include "RT_tunnel.h"
  6. #include "rtthread.h"
  7. #include <rthw.h>
  8. /* ---------------- Insight Data Structure ---------------- */
  9. /**
  10. * @struct RT_insight_info
  11. * @brief Structure representing an insight event or trace information.
  12. */
  13. typedef struct _RT_insight_info
  14. {
  15. uint32_t Frame_Header; /**< Frame header, 4 bytes */
  16. uint32_t ID; /**< Event ID, 4 bytes */
  17. uint32_t Track_Type; /**< Track type, 4 bytes */
  18. uint32_t Time_Stamp_ns_lo; /**< Lower 32 bits of timestamp in nanoseconds */
  19. uint32_t Time_Stamp_ns_hi; /**< Higher 32 bits of timestamp in nanoseconds */
  20. } RT_insight_info;
  21. /* ---------------- Insight Initialization ---------------- */
  22. /**
  23. * @brief Initialize the RT Insight module.
  24. *
  25. * @retval int 0 on success, negative value on error
  26. */
  27. int RT_Insight_Init(void);
  28. #endif // __RT_INSIGHT_H__