This commit is contained in:
Wolfgang Hottgenroth
2015-05-02 00:14:40 +02:00
commit 40e18d4172
40 changed files with 6547 additions and 0 deletions

37
ModbusApp.h Normal file
View File

@ -0,0 +1,37 @@
/*
* ModbusApp.h
*
* Created on: 01.05.2015
* Author: wn
*/
#ifndef MODBUSAPP_H_
#define MODBUSAPP_H_
#include "SimpleModbusMaster.h"
#include "Mudbus.h"
const uint32_t MODBUS_BAUD = 1200;
const uint16_t MODBUS_TIMEOUT = 10000;
const uint16_t MODBUS_SCANRATE = 1000;
const uint8_t MODBUS_RETRY_COUNT = 25;
const uint8_t MODBUS_TX_ENABLE_PIN = 2;
const uint8_t ZEROING_PIN = 3;
void modbusAppBegin(Mudbus *mb);
void modbusAppExec();
float getVoltage();
float getCurrent();
float getFrequency();
float getPower();
float getEnergy();
float getNewEnergy();
#endif /* MODBUSAPP_H_ */