Bitstream Interpretation Library (BIL)  0.1
PacketOpcode.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 #ifndef BIL_PACKETOPCODE_HPP
8 #define BIL_PACKETOPCODE_HPP
9 
10 
11 namespace bil {
12 
19  namespace PacketOpcode {
20 
22  typedef unsigned char opcode_t;
23 
24 
26  const opcode_t NO_OP = 0x00;
27 
29  const opcode_t REGISTER_READ = 0x01;
30 
32  const opcode_t REGISTER_WRITE = 0x02;
33 
34 
35  extern const char* const NO_OP_STRING;
36  extern const char* const REGISTER_READ_STRING;
37  extern const char* const REGISTER_WRITE_STRING;
38 
39 
44  const char* toString(opcode_t opcode);
45 
46  }
47 
48 }
49 
50 #endif