Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
src/ModbusMaster/ModbusMasterApi.cpp
- Committer:
- davidjhoward
- Date:
- 2016-09-20
- Revision:
- 83:0f76cfbb4eba
- Child:
- 134:f90154ff33ec
File content as of revision 83:0f76cfbb4eba:
#include "ModbusMasterApi.h"
#include "MTSLog.h"
bool ModbusMasterReadRegister( const std::string &io_tag, ModbusValue *value )
{
logInfo("%s:%d ", __func__, __LINE__);
value->value = ModbusRegisterMap[io_tag].float_value;
value->valid = true;
return true;
}
bool ModbusMasterWriteRegister( const std::string &io_tag, float value )
{
logInfo("%s:%d ", __func__, __LINE__);
ModbusRegisterMap[io_tag].float_value = value;
return true;
}
