+ *val |= bitString->buf[idx];
+ *val >>= bitString->bits_unused;
+
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Function to decode teId value from the octect String
+ *
+ * @details
+ *
+ * Function : teIdStringToInt
+ *
+ * Functionality: Function to decode teId value from the octect string
+ * It can used as generic function to convert
+ * octect string to uint32_t value
+ *
+ * @params[in] buf, value
+ * @return void
+ *
+ * ****************************************************************/
+void teIdStringToInt(uint8_t *buf, uint32_t *val)
+{
+ uint32_t temp1 = 0, temp2 = 0, temp3 = 0;
+
+ temp1 |= buf[0];
+ temp1 <<= 24;
+
+ temp2 |= buf[1];
+ temp2 <<= 16;
+
+ temp3 |= buf[2];
+ temp3 <<= 8;
+
+ *val = temp1|temp2|temp3|buf[3];