PEL: Add enums for transmission states

So far, the states are new, sent, and acked.

Also added PEL object access to getting and setting these on the User
Header section object.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I0dfb2d1a39fe69b2a47bf7d461f08e92039a3e03
diff --git a/extensions/openpower-pels/pel.hpp b/extensions/openpower-pels/pel.hpp
index 49b1d55..139fda8 100644
--- a/extensions/openpower-pels/pel.hpp
+++ b/extensions/openpower-pels/pel.hpp
@@ -219,6 +219,46 @@
      */
     void toJSON() const;
 
+    /**
+     * @brief Sets the host transmission state in the User Header
+     *
+     * @param[in] state - The state value
+     */
+    void setHostTransmissionState(TransmissionState state)
+    {
+        _uh->setHostTransmissionState(static_cast<uint8_t>(state));
+    }
+
+    /**
+     * @brief Returns the host transmission state
+     *
+     * @return HostTransmissionState - The state
+     */
+    TransmissionState hostTransmissionState() const
+    {
+        return static_cast<TransmissionState>(_uh->hostTransmissionState());
+    }
+
+    /**
+     * @brief Sets the HMC transmission state in the User Header
+     *
+     * @param[in] state - The state value
+     */
+    void setHMCTransmissionState(TransmissionState state)
+    {
+        _uh->setHMCTransmissionState(static_cast<uint8_t>(state));
+    }
+
+    /**
+     * @brief Returns the HMC transmission state
+     *
+     * @return HMCTransmissionState - The state
+     */
+    TransmissionState hmcTransmissionState() const
+    {
+        return static_cast<TransmissionState>(_uh->hmcTransmissionState());
+    }
+
   private:
     /**
      * @brief Builds the section objects from a PEL data buffer