Ben Tyner | 0205f3b | 2020-02-24 10:24:47 -0600 | [diff] [blame] | 1 | #include <hei_main.hpp> |
| 2 | |
| 3 | namespace analyzer |
| 4 | { |
| 5 | |
Ben Tyner | b859d79 | 2020-05-06 21:29:47 -0500 | [diff] [blame] | 6 | /** Analyze error condition using the hardware error isolator */ |
Ben Tyner | 0205f3b | 2020-02-24 10:24:47 -0600 | [diff] [blame] | 7 | void analyzeHardware() |
| 8 | { |
Ben Tyner | b859d79 | 2020-05-06 21:29:47 -0500 | [diff] [blame] | 9 | using namespace libhei; |
| 10 | |
| 11 | std::vector<Chip> chipList; // data to isolator |
| 12 | IsolationData isoData{}; // data from isolator |
| 13 | |
| 14 | // TEMP CODE - start |
| 15 | initialize(nullptr, 0); |
| 16 | |
| 17 | chipList.emplace_back(Chip{"proc", static_cast<ChipType_t>(0xdeadbeef)}); |
| 18 | |
| 19 | isolate(chipList, isoData); |
| 20 | |
| 21 | uninitialize(); |
| 22 | // TEMP CODE - end |
Ben Tyner | 0205f3b | 2020-02-24 10:24:47 -0600 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | } // namespace analyzer |