EV3UartGenerator
/home/shenghao/eclipse-workspace/EV3UartGenerator/magics.hpp
Go to the documentation of this file.
1 
23 #ifndef MAGICS_HPP_
24 #define MAGICS_HPP_
25 
26 #include <stdint.h> // We can't include <cstdint> if we want to compile under Arduino
27 
28 namespace EV3UartGenerator {
29 namespace Magics {
37  enum class SYS : uint8_t {
38  SYS_BASE = 0x00,
39  SYNC = 0x00,
40  NACK = 0x02,
41  ACK = 0x04,
42  ESC = 0x06,
43  };
44 
53  enum class CMD : uint8_t {
54  CMD_BASE = 0x40,
55  TYPE = 0x00,
56  MODES = 0x01,
57  SPEED = 0x02,
58  SELECT = 0x03,
59  WRITE = 0x04,
60  };
61 
69  enum class INFO : uint8_t {
70  INFO_BASE = 0x80,
71  };
72 
77  enum class INFO_SPAN : uint8_t {
78  RAW = 0x01,
79  PCT = 0x02,
80  SI = 0x03,
81  };
82 
87  enum class INFO_DTYPE : uint8_t {
88  S8 = 0x00,
89  S16 = 0x01,
90  S32 = 0X02,
91  F32 = 0x03,
92  };
93 
101  enum class DATA : uint8_t {
102  DATA_BASE = 0xc0,
103  };
104 }
105 }
106 
107 
108 
109 #endif /* MAGICS_HPP_ */