Erick / Mbed 2 deprecated ICE-F412

Dependencies:   mbed-rtos mbed

Revision:
2:02cb20446785
Parent:
1:b2e90cda7a5a
--- a/ICE-Application/src/ModbusMaster/ModbusMasterApi.cpp	Tue Jan 24 19:06:45 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,52 +0,0 @@
-#include "ModbusMasterApi.h"
-#include "ICELog.h"
-#include <stdio.h>
-
-bool ModbusMasterReadRegister( const std::string &io_tag, ModbusValue *value )
-{
-    if( !(RegisterValueMap.count(io_tag)) ) {
-        printf("%s:%d: Key=%s not in Modbus Map\r\n", __func__, __LINE__, io_tag.c_str() );
-        return false;
-    }
-
-    value->value = RegisterValueMap[io_tag].float_value;
-    value->errflag = RegisterValueMap[io_tag].errflag;
-    return true;
-}
-
-bool ModbusMasterWriteRegister( const std::string &io_tag, float value )
-{
-    if( !(RegisterValueMap.count(io_tag)) ) {
-        printf("%s:%d: Key=%s not in Modbus Map\r\n", __func__, __LINE__, io_tag.c_str() );
-        return false;
-    }
-
-    logDebug("\r[DEBUG] writing tag %s\n", io_tag.c_str());
-    RegisterValueMap[io_tag].float_value = value;
-    return true;
-}
-
-bool ScriptWriteRegister( const char *io_tag, double value )
-{
-    std::string ioString = io_tag;
-    if( !(RegisterValueMap.count(ioString)) ) {
-        printf("%s:%d: Key=%s not in Register Map\r\n", __func__, __LINE__, ioString.c_str() );
-        return false;
-    }
-
-    logDebug("\r[DEBUG] reading tag %s\n", io_tag);
-
-    RegisterValueMap[ioString].float_value = value;
-    return true;
-}
-
-double ScriptReadRegister( const char *io_tag )
-{
-    std::string ioString = io_tag;
-    if( !(RegisterValueMap.count(ioString)) ) {
-        printf("%s:%d: Key=%s not in Register Map\r\n", __func__, __LINE__, ioString.c_str() );
-        return -1;
-    }
-
-    return RegisterValueMap[ioString].float_value;
-}
\ No newline at end of file