HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
simple_power_meter.h File Reference

This file contains the definitions for the Simple Power Meter interface. More...

#include "hanfun/common.h"
#include "hanfun/protocol.h"
#include "hanfun/interface.h"
+ Include dependency graph for simple_power_meter.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  HF::Interfaces::SimplePowerMeter::Measurement
 This represents a measurement for a given attribute. More...
 
struct  HF::Interfaces::SimplePowerMeter::Report
 Simple Meter report. More...
 
struct  HF::Interfaces::SimplePowerMeter::Base
 Simple Power Meter Interface : Parent. More...
 
class  HF::Interfaces::SimplePowerMeter::Server
 Simple Power Meter Interface : Server side implementation. More...
 
struct  HF::Interfaces::SimplePowerMeter::Client
 Simple Power Meter Interface : Client side implementation. More...
 

Namespaces

 HF
 Top-level namespace for the HAN-FUN library.
 
 HF::Interfaces
 This is the top-level namespace for the implemented Interfaces.
 
 HF::Interfaces::SimplePowerMeter
 This namespace contains the implementation of the Simple Power Meter interface.
 

Macros

#define ATTR_SETTER(__type, __arg, __uid)
 Helper macro used to support attribute reporting.
 

Enumerations

enum  HF::Interfaces::SimplePowerMeter::CMD { HF::Interfaces::SimplePowerMeter::REPORT_CMD = 0x01, HF::Interfaces::SimplePowerMeter::MEASUREMENT_RESET_CMD = 0x01 }
 Commands IDs. More...
 
enum  HF::Interfaces::SimplePowerMeter::Attributes {
  HF::Interfaces::SimplePowerMeter::ENERGY_ATTR = 0x01, HF::Interfaces::SimplePowerMeter::ENERGY_AT_RESET_ATTR = 0x02, HF::Interfaces::SimplePowerMeter::TIME_AT_RESET_ATTR = 0x03, HF::Interfaces::SimplePowerMeter::POWER_ATTR = 0x04,
  HF::Interfaces::SimplePowerMeter::AVG_POWER_ATTR = 0x05, HF::Interfaces::SimplePowerMeter::AVG_POWER_INTERVAL_ATTR = 0x06, HF::Interfaces::SimplePowerMeter::VOLTAGE_ATTR = 0x07, HF::Interfaces::SimplePowerMeter::CURRENT_ATTR = 0x08,
  HF::Interfaces::SimplePowerMeter::FREQUENCY_ATTR = 0x09, HF::Interfaces::SimplePowerMeter::POWER_FACTOR_ATTR = 0x0A, HF::Interfaces::SimplePowerMeter::REPORT_INTERVAL_ATTR = 0x0B
}
 Attributes IDs. More...
 

Functions

HF::Attributes::IAttributeHF::Interfaces::create_attribute (HF::Interfaces::SimplePowerMeter::Server *server, uint8_t uid)
 Create an attribute object that can hold the attribute with the given uid. More...
 
HF::Attributes::IAttributeHF::Interfaces::SimplePowerMeter::create_attribute (uint8_t uid)
 Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::SimplePowerMeter::Server *,uint8_t) More...
 
std::ostream & operator<< (std::ostream &stream, const HF::Interfaces::SimplePowerMeter::CMD command)
 Convert the given command into a string and write it to the given stream. More...
 
std::ostream & operator<< (std::ostream &stream, const HF::Interfaces::SimplePowerMeter::Attributes attribute)
 Convert the given attribute into a string and write it to the given stream. More...
 

Detailed Description

This file contains the definitions for the Simple Power Meter interface.

Version
1.5.3

For licensing information, please see the file 'LICENSE' in the root folder.

Initial development by Bithium S.A. [http://www.bithium.com]

Definition in file simple_power_meter.h.