Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

src/ModbusMaster/ModbusMasterApi.cpp

Committer:
davidjhoward
Date:
2016-09-27
Revision:
134:f90154ff33ec
Parent:
83:0f76cfbb4eba
Child:
148:ee3cbaafe355

File content as of revision 134:f90154ff33ec:

#include "ModbusMasterApi.h"
#include "MTSLog.h"

bool ModbusMasterReadRegister( const std::string &io_tag, ModbusValue *value )
{
    value->value = ModbusRegisterMap[io_tag].float_value;
    value->valid = true;
    return true;
}

bool ModbusMasterWriteRegister( const std::string &io_tag, float value )
{
    ModbusRegisterMap[io_tag].float_value = value;
    return true;
}