summaryrefslogtreecommitdiffstats
path: root/occ_sensor.mako.hpp
blob: b5fac53a37d12e838a1c00e7b42194ede2cac7d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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