summaryrefslogtreecommitdiffstats
path: root/occ_sensor.mako.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'occ_sensor.mako.hpp')
-rwxr-xr-xocc_sensor.mako.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/occ_sensor.mako.hpp b/occ_sensor.mako.hpp
new file mode 100755
index 0000000..b5fac53
--- /dev/null
+++ b/occ_sensor.mako.hpp
@@ -0,0 +1,31 @@
+## This file is a template. The comment below is emitted
+## into the rendered file; feel free to edit this file.
+// WARNING: Generated header. Do not edit!
+
+
+#pragma once
+
+#include <map>
+
+namespace open_power
+{
+namespace occ
+{
+
+using instanceID = int;
+using sensorID = uint8_t;
+const std::map<instanceID, sensorID> Status::sensorMap = {
+\
+% for occ in occDict:
+<%
+ instance = occ.get("Instance")
+ id = occ.get("SensorID")
+%>\
+\
+ { ${instance}, ${id} },\
+
+% endfor
+};
+
+} // namespace occ
+} // namespace open_power
OpenPOWER on IntegriCloud