Bitstream Interpretation Library (BIL)  0.1
V5RegisterAddress.cpp
Go to the documentation of this file.
1 
7 
8 using namespace bil;
9 
10 const char* const V5RegisterAddress::CRC_STRING = "CRC";
11 const char* const V5RegisterAddress::FAR_STRING = "FAR";
12 const char* const V5RegisterAddress::FDRI_STRING = "FDRI";
13 const char* const V5RegisterAddress::FDRO_STRING = "FDRO";
14 const char* const V5RegisterAddress::CMD_STRING = "CMD";
15 const char* const V5RegisterAddress::CTL0_STRING = "CTL0";
16 const char* const V5RegisterAddress::MASK_STRING = "MASK";
17 const char* const V5RegisterAddress::STAT_STRING = "STAT";
18 const char* const V5RegisterAddress::LOUT_STRING = "LOUT";
19 const char* const V5RegisterAddress::COR0_STRING = "COR0";
20 const char* const V5RegisterAddress::MFWR_STRING = "MFWR";
21 const char* const V5RegisterAddress::CBC_STRING = "CBC";
22 const char* const V5RegisterAddress::IDCODE_STRING = "IDCODE";
23 const char* const V5RegisterAddress::AXSS_STRING = "AXSS";
24 const char* const V5RegisterAddress::COR1_STRING = "COR1";
25 const char* const V5RegisterAddress::CSOB_STRING = "CSOB";
26 const char* const V5RegisterAddress::WBSTAR_STRING = "WBSTAR";
27 const char* const V5RegisterAddress::TIMER_STRING = "TIMER";
28 const char* const V5RegisterAddress::REG19_STRING = "REG19";
29 const char* const V5RegisterAddress::BOOTSTS_STRING = "BOOTSTS";
30 const char* const V5RegisterAddress::CTL1_STRING = "CTL1";
31 
32 
34 {
35  switch (address)
36  {
37  case CRC: return CRC_STRING;
38  case FAR: return FAR_STRING;
39  case FDRI: return FDRI_STRING;
40  case FDRO: return FDRO_STRING;
41  case CMD: return CMD_STRING;
42  case CTL0: return CTL0_STRING;
43  case MASK: return MASK_STRING;
44  case STAT: return STAT_STRING;
45  case LOUT: return LOUT_STRING;
46  case COR0: return COR0_STRING;
47  case MFWR: return MFWR_STRING;
48  case CBC: return CBC_STRING;
49  case IDCODE: return IDCODE_STRING;
50  case AXSS: return AXSS_STRING;
51  case COR1: return COR1_STRING;
52  case CSOB: return CSOB_STRING;
53  case WBSTAR: return WBSTAR_STRING;
54  case TIMER: return TIMER_STRING;
55  case REG19: return REG19_STRING;
56  case BOOTSTS: return BOOTSTS_STRING;
57  case CTL1: return CTL1_STRING;
58  default: return 0;
59  }
60 }