Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Committer:
davidjhoward
Date:
Thu Oct 06 15:24:10 2016 +0000
Revision:
190:af7ab603c9fe
Parent:
83:0f76cfbb4eba
Child:
197:594afd088f32
add new modbus driver and error flags for readings

Who changed what in which revision?

UserRevisionLine numberNew contents of line
davidjhoward 83:0f76cfbb4eba 1 #ifndef MODBUSMASTERAPI_H
davidjhoward 83:0f76cfbb4eba 2 #define MODBUSMASTERAPI_H
davidjhoward 83:0f76cfbb4eba 3
davidjhoward 83:0f76cfbb4eba 4 #include <string>
davidjhoward 83:0f76cfbb4eba 5 #include "global.h"
davidjhoward 83:0f76cfbb4eba 6
davidjhoward 83:0f76cfbb4eba 7 struct ModbusValue {
davidjhoward 83:0f76cfbb4eba 8 float value;
davidjhoward 190:af7ab603c9fe 9 uint32_t errflag;
davidjhoward 83:0f76cfbb4eba 10 };
davidjhoward 83:0f76cfbb4eba 11
davidjhoward 83:0f76cfbb4eba 12 bool ModbusMasterReadRegister( const std::string &io_tag, ModbusValue *value );
davidjhoward 83:0f76cfbb4eba 13 bool ModbusMasterWriteRegister( const std::string &io_tag, float value );
davidjhoward 83:0f76cfbb4eba 14
davidjhoward 83:0f76cfbb4eba 15 #endif
davidjhoward 83:0f76cfbb4eba 16