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

This class represents a node in the HAN-FUN network. More...

#include <node.h>

+ Inheritance diagram for Node:
+ Collaboration diagram for Node:

Public Member Functions

void receive (HF::Protocol::Packet &packet, HF::Common::ByteArray &payload, uint16_t offset)
 Callback to deliver a packet received from the transport layer. More...
 
- Public Member Functions inherited from HF::Devices::Node::Abstract< CoreServices >
void connected (HF::Transport::Link *link) _override
 Callback to report that a new transport link was been created to a remote device. More...
 
void disconnected (HF::Transport::Link *link) _override
 Callback to the report that the given transport link no longer is valid and MUST not be used to send messages to the corresponding end-point. More...
 
uint16_t address () const _override
 Return the device address on the HAN-FUN network, when the device is registered, or HF_BROADCAST_ADDR otherwise. More...
 
CoreServices * unit0 () const _override
 Return pointer to the unit 0 for this device. More...
 
- Public Member Functions inherited from HF::Devices::AbstractDevice
const IUnitsunits () const
 Return the list of units registered in this device. More...
 
void add (Units::IUnit *unit)
 Add unit to devices unit lists. More...
 
void remove (Units::IUnit *unit)
 Remove unit from device's unit list. More...
 
Units::IUnitunit (uint8_t id) const
 Return pointer to the unit with the given id. More...
 
void send (Protocol::Packet &packet)
 Send given packet into the HAN-FUN network. More...
 
void periodic (uint32_t time)
 Handle periodic processing. More...
 
Events

Additional Inherited Members

- Protected Member Functions inherited from HF::Devices::Node::Abstract< CoreServices >
HF::Transport::Linklink (uint16_t addr) const _override
 Return the link that can be used to send a packet to the device with the given address. More...
 
bool to_local (const Protocol::Packet &packet) const _override
 Check if an incoming packet is for the node. More...
 
- Protected Member Functions inherited from HF::Devices::AbstractDevice
bool from_local (const Protocol::Packet &packet) const
 Check if the given packet is from the local device. More...
 
bool from_remote (const Protocol::Packet &packet)
 Check if the given packet is from the a remote device. More...
 
bool is_registered ()
 Check if the device has a valid, i.e. More...
 
- Protected Member Functions inherited from HF::Devices::Node::Abstract< NodeUnit0 >
bool to_local (const Protocol::Packet &packet) const _override
 Check if an incoming packet is for the node. More...
 
- Protected Member Functions inherited from HF::Devices::Node::Abstract< HF::Devices::Node::DefaultUnit0 >
bool to_local (const Protocol::Packet &packet) const _override
 Check if an incoming packet is for the node. More...
 
- Protected Attributes inherited from HF::Devices::Node::Abstract< CoreServices >
HF::Transport::Link_link
 Link to the be used when sending packets to the network.
 
CoreServices _unit0
 Unit 0 implementation this device will use.
 
- Protected Attributes inherited from HF::Devices::AbstractDevice
uint8_t next_reference
 Last reference number used to send a packet.
 
IUnits _units
 List containing pointers to the units present in the device.
 
Protocol::Filters::ResponseRequired response_filter
 Support for generating missing responses for messages.
 
- Protected Attributes inherited from HF::Devices::Node::Abstract< NodeUnit0 >
HF::Transport::Link_link
 Link to the be used when sending packets to the network.
 
NodeUnit0 _unit0
 Unit 0 implementation this device will use.
 
- Protected Attributes inherited from HF::Devices::Node::Abstract< HF::Devices::Node::DefaultUnit0 >
HF::Transport::Link_link
 Link to the be used when sending packets to the network.
 
HF::Devices::Node::DefaultUnit0 _unit0
 Unit 0 implementation this device will use.
 

Detailed Description

This class represents a node in the HAN-FUN network.

Definition at line 34 of file node.h.


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