WiFiPowerMeter/ModbusApp.h

39 lines
631 B
C
Raw Permalink Normal View History

2015-05-02 00:14:40 +02:00
/*
* ModbusApp.h
*
* Created on: 01.05.2015
* Author: wn
*/
#ifndef MODBUSAPP_H_
#define MODBUSAPP_H_
#include "SimpleModbusMaster.h"
2015-05-03 20:53:49 +02:00
// #include "Mudbus.h"
2015-05-02 00:14:40 +02:00
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;
2015-05-03 20:53:49 +02:00
// void modbusAppBegin(Mudbus *mb);
void modbusAppBegin();
2015-05-02 00:14:40 +02:00
void modbusAppExec();
float getVoltage();
float getCurrent();
float getFrequency();
float getPower();
float getEnergy();
float getNewEnergy();
#endif /* MODBUSAPP_H_ */