byteman  1.3 (Build #225)
Bitstream relocation and manipulation tool
XCAP.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2022 Kristiyan Manev (University of Manchester)
3  *
4  * Licensed under the Apache License, Version 2.0(the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 
17 #ifndef XCAP_H
18 #define XCAP_H
19  namespace XCAP{
20  enum class Register{
21  UNDEFINED = -1,
22  CRC = 0,
23  FAR = 1,
24  FDRI = 2,
25  FDRO = 3,
26  CMD = 4,
27  CTRL0 = 5,
28  MASK = 6,
29  STAT = 7,
30  LOUT = 8,
31  COR0 = 9,
32  MFWR = 10,
33  CBC = 11,
34  IDCODE = 12,
35  AXSS = 13,
36  COR1 = 14,
37  WBSTAR = 16,
38  TIMER = 17,
39  MAGIC0 = 19,
40  BOOTSTS = 22,
41  CTRL1 = 24,
42  MAGIC1 = 30,
43  BSPI = 31
44  };
45 
46  enum class Command{
47  UNDEFINED = -1,
48  NULLCMD = 0,
49  WCFG = 1,
50  MFW = 2,
51  DGHIGH = 3,
52  RCFG = 4,
53  START = 5,
54  URAM = 6,
55  RCRC = 7,
56  AGHIGH = 8,
57  SWITCH = 9,
58  GRESTORE = 10,
59  SHUTDOWN = 11,
60  DESYNC = 13,
61  IPROG = 15,
62  CRCC = 16,
63  LTIMER = 17,
64  BSPI_READ = 18,
65  FALL_EDGE = 19,
66  MAGIC2 = 21
67  };
68 
69  enum class Operation{
70  NOP = 0,
71  READ = 1,
72  WRITE = 2,
73  RESERVED = 3
74  };
75  }
76 #endif //XCAP_H
Definition: XCAP.h:19
Operation
Definition: XCAP.h:69
Register
Definition: XCAP.h:20
Command
Definition: XCAP.h:46