![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
This represent the special unit with ID/UID = 0. More...
#include <core.h>
Public Member Functions | |
Unit0 (IDevice &device) | |
Constructor. More... | |
uint8_t | id () const |
Get the id number of this unit on the device. More... | |
uint16_t | uid () const |
Return this profile HAN-FUN UID. 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... | |
![]() | |
IDevice & | device () const |
Reference to the device this unit belongs to. More... | |
void | send (const Protocol::Address &addr, Protocol::Message &message, Transport::Link *link) |
Create and send a new packet with the given message to the given address. More... | |
std::vector< Common::Interface > | interfaces () const |
Return a vector containing a list of extra interfaces, other than the interfaces specified by the profile the unit implements) More... | |
void | periodic (uint32_t time) |
Handle periodic processing. More... | |
![]() | |
virtual Common::Result | handle (Protocol::Packet &packet, Common::ByteArray &payload, uint16_t offset)=0 |
Handle incoming messages from the network. More... | |
Additional Inherited Members | |
![]() | |
AbstractUnit (IDevice &device) | |
Constructor. More... | |
void | notify (const HF::Attributes::IAttribute &old_value, const HF::Attributes::IAttribute &new_value) const |
Notify the attribute reporting service that the given attribute has changed value. More... | |
![]() | |
uint8_t | _id |
Unit ID used to identify a given unit in a given HAN-FUN device. | |
|
inline |
Constructor.
[in] | device | reference to the device that holds this unit. |
Definition at line 76 of file core.h.
|
inlinevirtual |
Return a list of all the attributes for a given interface, pack id and list of attributes UID's.
Implements HF::Profiles::IProfile.
Definition at line 91 of file core.h.
References UNUSED.
|
inlinevirtual |
Get the id number of this unit on the device.
Implements HF::Units::IUnit.
|
inlinevirtual |
Return this profile HAN-FUN UID.
Implements HF::Profiles::IProfile.