Erick / Mbed 2 deprecated ICE-F412

Dependencies:   mbed-rtos mbed

ICE-Application/src/ModbusMaster/ModbusMasterApi.h

Committer:
jmarkel44
Date:
2017-01-24
Revision:
0:61364762ee0e

File content as of revision 0:61364762ee0e:

#ifndef MODBUSMASTERAPI_H
#define MODBUSMASTERAPI_H

#include <string>
#include "global.h"

struct ModbusValue {
    float value;
    uint32_t errflag;
};

bool ModbusMasterReadRegister( const std::string &io_tag, ModbusValue *value );
bool ModbusMasterWriteRegister( const std::string &io_tag, float value );
void ModbusMasterExecCmd( ThreadName_t replyTo, char *cmd );

bool ScriptWriteRegister( const char *io_tag, double value );
double ScriptReadRegister( const char *io_tag );

#endif