Álvaro de Rada / X_NUCLEO_PLC01A1
Revision:
2:1ec0dea195f8
Parent:
0:b66a560b6618
--- a/Components/Interfaces/Component_class.h	Fri Feb 19 11:10:02 2016 +0000
+++ b/Components/Interfaces/Component_class.h	Tue Feb 23 10:40:17 2016 +0000
@@ -68,34 +68,6 @@
      * @retval "0" in case of success, an error code otherwise.
      */
     virtual int ReadID(uint8_t *id) = 0;
-    
-    /**
-     * @brief      Converts two uint8_t words into one of uint16_t
-     * @param[in]  ptr pointer to the buffer of data to be converted.
-     * @retval     16-bit data.
-     */
-    uint16_t convertFrom8To16(uint8_t *ptr)
-    {
-        uint16_t data16 = 0x0000;
-        
-        data16 = *ptr;
-        data16 |= *(++ptr) << 8;
-        
-        return data16;
-    }
-
-    /**
-     * @brief      Converts one uint16_t word into two uint8_t
-     * @param[in]  ptr pointer to the buffer of uint8_t words.
-     * @param[in]  16-bit data.
-     * @retval     none.
-     */
-    void convertFrom16To8(uint16_t data16, uint8_t *ptr)
-    {
-        *(ptr) = data16 & 0x00FF;
-        *(++ptr) = (data16 >> 8) & 0x00FF;
-    }
-
 };
 
 #endif /* __COMPONENT_CLASS_H */