Add SBE timeout handling

Add an Error instance to detect SBE timeouts in the driver.
Refactor the PLDM code to handle another requeset type (the HRESET) and
another type of sensor event (success or failure of the HRESET).
Handle the timeout and the PLDM event state change in the Manager by
changing the SBE state and requesting an SBE dump if necessary.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Change-Id: I30d8f9de1914d9808ddb7b547cc57085a5e5779e
diff --git a/occ_device.cpp b/occ_device.cpp
index 2ee5f34..c95c0f3 100644
--- a/occ_device.cpp
+++ b/occ_device.cpp
@@ -1,5 +1,6 @@
 #include "occ_device.hpp"
 
+#include "occ_manager.hpp"
 #include "occ_status.hpp"
 
 #include <iostream>
@@ -48,6 +49,24 @@
     return (master != 0);
 }
 
+void Device::errorCallback(bool error)
+{
+    if (error)
+    {
+        statusObject.deviceError();
+    }
+}
+
+#ifdef PLDM
+void Device::timeoutCallback(bool error)
+{
+    if (error)
+    {
+        managerObject.sbeTimeout(instance);
+    }
+}
+#endif
+
 void Device::throttleProcTempCallback(bool error)
 {
     statusObject.throttleProcTemp(error);