Bitstream Interpretation Library (BIL)
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
bitstream
PacketOpcode.cpp
Go to the documentation of this file.
1
6
#include <
bitstream/PacketOpcode.hpp
>
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
;
20
case
REGISTER_READ
:
return
REGISTER_READ_STRING
;
21
case
REGISTER_WRITE
:
return
REGISTER_WRITE_STRING
;
22
default
:
return
0;
23
}
24
}
Generated on Wed Aug 8 2012 21:57:40 for Bitstream Interpretation Library (BIL) by
1.8.1.1