Bitstream Interpretation Library (BIL)  0.1
V5CommandCode.cpp
Go to the documentation of this file.
1 
7 
8 using namespace bil;
9 
10 const char* const V5CommandCode::NULLCMD_STRING = "NULL";
11 const char* const V5CommandCode::WCFG_STRING = "WCFG";
12 const char* const V5CommandCode::MFW_STRING = "MFW";
13 const char* const V5CommandCode::LFRM_STRING = "LFRM";
14 const char* const V5CommandCode::RCFG_STRING = "RCFG";
15 const char* const V5CommandCode::START_STRING = "START";
16 const char* const V5CommandCode::RCAP_STRING = "RCAP";
17 const char* const V5CommandCode::RCRC_STRING = "RCRC";
18 const char* const V5CommandCode::AGHIGH_STRING = "AGHIGH";
19 const char* const V5CommandCode::SWITCH_STRING = "SWITCH";
20 const char* const V5CommandCode::GRESTORE_STRING = "GRESTORE";
21 const char* const V5CommandCode::SHUTDOWN_STRING = "SHUTDOWN";
22 const char* const V5CommandCode::GCAPTURE_STRING = "GCAPTURE";
23 const char* const V5CommandCode::DESYNCH_STRING = "DESYNCH";
24 const char* const V5CommandCode::IPROG_STRING = "IPROG";
25 const char* const V5CommandCode::CRCC_STRING = "CRCC";
26 const char* const V5CommandCode::LTIMER_STRING = "LTIMER";
27 
28 
29 const char* V5CommandCode::toString(command_t command)
30 {
31  switch (command)
32  {
33  case NULLCMD: return NULLCMD_STRING;
34  case WCFG: return WCFG_STRING;
35  case MFW: return MFW_STRING;
36  case LFRM: return LFRM_STRING;
37  case RCFG: return RCFG_STRING;
38  case START: return START_STRING;
39  case RCAP: return RCAP_STRING;
40  case RCRC: return RCRC_STRING;
41  case AGHIGH: return AGHIGH_STRING;
42  case SWITCH: return SWITCH_STRING;
43  case GRESTORE: return GRESTORE_STRING;
44  case SHUTDOWN: return SHUTDOWN_STRING;
45  case GCAPTURE: return GCAPTURE_STRING;
46  case DESYNCH: return DESYNCH_STRING;
47  case IPROG: return IPROG_STRING;
48  case CRCC: return CRCC_STRING;
49  case LTIMER: return LTIMER_STRING;
50  default: return 0;
51  }
52 }