HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::Devices::Concentrator::Unit0< ITF > Struct Template Reference

Template to create Unit0 for HAN-FUN concentrator devices. More...

#include <devices.h>

+ Inheritance diagram for HF::Devices::Concentrator::Unit0< ITF >:
+ Collaboration diagram for HF::Devices::Concentrator::Unit0< ITF >:

Public Member Functions

 Unit0 (HF::IDevice &device)
 Constructor. More...
 
- Public Member Functions inherited from HF::Unit0< IUnit0, ITF... >
 Unit0 (HF::IDevice &device)
 Constructor. More...
 
DeviceInfo * device_info () const
 Device Information service. More...
 
DeviceInfo * device_info ()
 Device Information service. More...
 
DeviceMgt * device_management () const
 Device Management service. More...
 
DeviceMgt * device_management ()
 Device Management service. More...
 
AttrReporting * attribute_reporting () const
 Attribute Reporting service. More...
 
AttrReporting * attribute_reporting ()
 Attribute Reporting service. More...
 
Common::Result handle (HF::Protocol::Packet &packet, Common::ByteArray &payload, uint16_t offset)
 Handle incoming messages from the network. More...
 
HF::Attributes::List attributes (Common::Interface itf, uint8_t pack_id, const HF::Attributes::UIDS &uids) const
 Return a list of all the attributes for a given interface, pack id and list of attributes UID's. More...
 
- Public Member Functions inherited from HF::Interfaces::Container< IUnit0, Proxy< ITF, IUnit0 >... >
 Container (IUnit0 &base)
 Constructor. More...
 
Common::Result handle (Protocol::Packet &packet, Common::ByteArray &payload, uint16_t offset)
 Handle incoming messages from the network. More...
 
void attributes (HF::Attributes::List &attr_list, Common::Interface itf, uint8_t pack_id, const HF::Attributes::UIDS &uids) const
 Return a list of all the attributes for a given interface, pack id and list of attributes UID's. More...
 
std::vector< Common::Interfaceinterfaces () const
 Return the list of interfaces present in the wrapper. More...
 
const std::tuple_element< N, interfaces_t >::type::base * get () const
 Retrieve a pointer to the N optional interface implemented by this unit. More...
 

Static Public Attributes

static constexpr uint8_t BIND_MGT = _Parent::BIND_MGT
 Group Management service index.
 

Additional Inherited Members

- Public Types inherited from HF::Unit0< IUnit0, ITF... >
enum  Inferface
 Core Services indexs.
 
- Protected Member Functions inherited from HF::Interfaces::Container< IUnit0, Proxy< ITF, IUnit0 >... >
void for_each (std::function< void(HF::Interface &)> func) const
 Call the given function for all the interfaces. More...
 
void for_each (std::function< void(HF::Interface &)> func)
 Call the given function for all the interfaces. More...
 
void for_each (std::function< void(HF::Interface &)> func) const
 Helper template function to implement the HF::Units::Unit::for_each functionality. More...
 
void for_each (std::function< void(HF::Interface &)> func) const
 Helper template function to implement the HF::Units::Unit::for_each functionality. More...
 
HF::Interfacefind (uint16_t itf_uid) const
 Find the interface with the given UID. More...
 
HF::Interfacefind (uint16_t itf_uid) const
 Final template instantiation that finds the wrapped interface with the given UID. More...
 
void attributes_itf (HF::Attributes::List &attrs, Common::Interface itf, uint8_t pack_id, const HF::Attributes::UIDS &uids) const
 Helper function used to provide HF::Units::Unit::attributes functionality. More...
 
void attributes_itf (HF::Attributes::List &attrs, Common::Interface itf, uint8_t pack_id, const HF::Attributes::UIDS &uids) const
 Helper function used to provide HF::Units::Unit::attributes functionality. More...
 

Detailed Description

template<typename... ITF>
struct HF::Devices::Concentrator::Unit0< ITF >

Template to create Unit0 for HAN-FUN concentrator devices.

Definition at line 668 of file devices.h.

Constructor & Destructor Documentation

◆ Unit0()

template<typename... ITF>
HF::Devices::Concentrator::Unit0< ITF >::Unit0 ( HF::IDevice device)
inline

Constructor.

Parameters
devicereference to the device this unit 0 belongs to.

Definition at line 718 of file devices.h.

718  :
719  HF::Unit0<IUnit0, ITF...>(device)
720  {}
Helper template class used to define custom Unit 0 for devices.
Definition: core.h:264

The documentation for this struct was generated from the following file: