vzlogger/include/protocols/fluksov2.h

51 lines
1.4 KiB
C
Raw Permalink Normal View History

/**
* Replacement for fluksod by directly parsing the fluksometers SPI output
*
* @package vzlogger
* @copyright Copyright (c) 2011, The volkszaehler.org project
* @license http://www.gnu.org/licenses/gpl.txt GNU Public License
* @author Steffen Vogel <info@steffenvogel.de>
*/
/*
* This file is part of volkzaehler.org
*
* volkzaehler.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* volkzaehler.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with volkszaehler.org. If not, see <http://www.gnu.org/licenses/>.
*/
2012-02-05 18:14:01 +01:00
#ifndef _FLUKSOV2_H_
#define _FLUKSOV2_H_
2012-02-05 18:14:01 +01:00
#include "meter.h"
2012-02-05 18:14:01 +01:00
using namespace std;
2012-02-05 18:14:01 +01:00
class MeterFluksoV2 : public Meter {
public:
MeterFluksoV2(map<string, Option> options);
virtual ~MeterFluksoV2();
2012-02-05 18:14:01 +01:00
int open();
int close();
int read(reading_t *rds, size_t n);
protected:
char *fifo;
int fd; /* file descriptor of fifo */
2012-02-05 18:14:01 +01:00
const char *DEFAULT_FIFO = "/var/run/spid/delta/out";
};
#endif /* _FLUKSOV2_H_ */