platform-mc: Added EventManager
Added eventManager to handle sensor event class(00h) which is defined in
table 11 of DSP0248 v1.3.0. In this commit, the eventManager supports to
receive event asynchronously. The commit will also log the Ipmitool SEL
log and Redfish log for PLDM sensor event messages.
Change-Id: I1b337ccae454067841ffbbd8754631216a995542
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
Signed-off-by: Gilbert Chen <gilbertc@nvidia.com>
diff --git a/platform-mc/terminus.hpp b/platform-mc/terminus.hpp
index 26a412b..dd766c6 100644
--- a/platform-mc/terminus.hpp
+++ b/platform-mc/terminus.hpp
@@ -133,6 +133,9 @@
/** @brief A flag to indicate if terminus has been initialized */
bool initialized = false;
+ /** @brief maximum message buffer size the terminus can send and receive */
+ uint16_t maxBufferSize;
+
/** @brief This value indicates the event messaging styles supported by the
* terminus
*/
@@ -148,6 +151,14 @@
*/
std::shared_ptr<SensorAuxiliaryNames> getSensorAuxiliaryNames(SensorId id);
+ /** @brief Get Numeric Sensor Object by sensorID
+ *
+ * @param[in] id - sensor ID
+ *
+ * @return sensor object
+ */
+ std::shared_ptr<NumericSensor> getSensorObject(SensorId id);
+
private:
/** @brief Find the Terminus Name from the Entity Auxiliary name list
* The Entity Auxiliary name list is entityAuxiliaryNamesTbl.