Bitstream Interpretation Library (BIL)  0.1
PacketOpcode.cpp
Go to the documentation of this file.
1 
7 
8 using namespace bil;
9 
10 const char* const PacketOpcode::NO_OP_STRING = "NO_OP";
11 const char* const PacketOpcode::REGISTER_READ_STRING = "REGISTER_READ";
12 const char* const PacketOpcode::REGISTER_WRITE_STRING = "REGISTER_WRITE";
13 
14 
15 const char* PacketOpcode::toString(opcode_t opcode)
16 {
17  switch (opcode)
18  {
19  case NO_OP: return NO_OP_STRING;
22  default: return 0;
23  }
24 }