Commit e44aa90
committed
backend: Export/import the Backend config as JSON
Add a new helper BackEnd::GetJsonConfig() to return a JSON string of
the current Backend register configuration and tile data. The parameters
are the actual register values to be programmed into the hardware, and
currently all dumped as unsigned.
Add a new helper BackEnd::SetJsonConfig() to read a JSON string and
import the Backend register configuration. Tile data does not get
imported, and will need a BackEnd::Prepare() call to re-generate the
tile data.
Signed-off-by: Naushir Patuck <[email protected]>1 parent 4b19cee commit e44aa90
File tree
3 files changed
+567
-0
lines changed- src/libpisp/backend
3 files changed
+567
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
133 | 137 | | |
134 | 138 | | |
135 | 139 | | |
| |||
0 commit comments