embkernel
 All Classes Functions Variables Typedefs Groups Pages
LibRtosTraceNet.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 
6 #ifndef LIB_NET_RTOS_TRACE_HPP_
7 #define LIB_NET_RTOS_TRACE_HPP_
8 
9 #include "RtosInclude.hpp"
10 #include "NetInclude.hpp"
11 #include "LibPktHandler.hpp"
12 
13 class LibTraceRtosNet: public RtosRunnable {
14 private:
15  enum
16  :uint16_t {
17  CMD_GET_TASK_NAME = 0x0010,
18  CMD_SEND_TRACE_TAGS = 0x0011,
19  GET_CLOCK_FREQUENCY = 0x0012,
20  CMD_GET_TASK_STACK = 0x0013,
21  CMD_BUFFER_FULL = 0x0014,
22  };
23 
24  RtosTask mTask;
25  LibPktHandler mPktHandler;
26  NetTcpSocket mSocket;
27  uint16_t mPort;
28 public:
29  LibTraceRtosNet(int priority, size_t stackSize, uint16_t port);
30  ~LibTraceRtosNet();
31 
32 protected:
33  virtual void run();
34 };
35 
36 #endif /* LIB_NET_RTOS_TRACE_HPP_ */