![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
Template to create Unit 0 for HAN-FUN node devices. More...
#include <devices.h>
Public Member Functions | |
Unit0 (IDevice &device) | |
Constructor. More... | |
DeviceInfo * | device_info () const |
Get the pointer to the node's Device Information service. More... | |
DeviceInfo * | device_info () |
Get the pointer to the node's Device Information service. More... | |
AttrReporting * | attribute_reporting () const |
Get the pointer to the node's Attribute Reporting service. More... | |
AttrReporting * | attribute_reporting () |
Get the pointer to the node's Attribute Reporting service. More... | |
DeviceMgt * | device_management () |
Get the pointer to the node's Device Management service. More... | |
DeviceMgt * | device_management () const |
Get the pointer to the node's Device Management service. More... | |
![]() | |
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... | |
![]() | |
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::Interface > | interfaces () 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... | |
Additional Inherited Members | |
![]() | |
enum | Inferface |
Core Services indexs. | |
![]() | |
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::Interface * | find (uint16_t itf_uid) const |
Find the interface with the given UID. More... | |
HF::Interface * | find (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... | |
Template to create Unit 0 for HAN-FUN node devices.
|
inline |
|
inline |
Get the pointer to the node's Attribute Reporting service.
Definition at line 293 of file devices.h.
References HF::Unit0< IUnit0, ITF... >::attribute_reporting().
|
inline |
Get the pointer to the node's Attribute Reporting service.
Definition at line 303 of file devices.h.
References HF::Unit0< IUnit0, ITF... >::attribute_reporting().
|
inline |
Get the pointer to the node's Device Information service.
Definition at line 273 of file devices.h.
References HF::Unit0< IUnit0, ITF... >::device_info().
|
inline |
Get the pointer to the node's Device Information service.
Definition at line 283 of file devices.h.
References HF::Unit0< IUnit0, ITF... >::device_info().
|
inline |
Get the pointer to the node's Device Management service.
Definition at line 313 of file devices.h.
References HF::Unit0< IUnit0, ITF... >::device_management().
|
inline |
Get the pointer to the node's Device Management service.
Definition at line 323 of file devices.h.
References HF::Unit0< IUnit0, ITF... >::device_management().