embkernel
 All Classes Functions Variables Typedefs Groups Pages
Comm.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 
6 #ifndef COMM_HPP_
7 #define COMM_HPP_
8 
9 #include "RtosInclude.hpp"
10 #include "UsbInclude.hpp"
11 #include "LibPktHandler.hpp"
12 
13 
14 class Comm: public RtosRunnable {
15 private:
16  enum
17  :uint16_t {
18  CMD_GET_LEDS = 0x0010,
19  CMD_SET_LEDS = 0x0011,
20  CMD_GET_ACC_XYZ =0x0012,
21  };
22 
23  RtosTask mTask;
24  LibPktHandler mPktHandler;
25  UsbRxStream mUsbRxStream;
26  UsbTxStream mUsbTxStream;
27 
28 public:
29  Comm(int priority, size_t stackSize, uint8_t outEp, uint8_t inEp);
30  ~Comm();
31 
32 protected:
33  virtual void run();
34 };
35 
36 #endif /* COMM_HPP_ */