HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::Transport::AbstractLink Class Reference

Parent class for all HF::Transport::Link implementations. More...

#include <transport.h>

+ Inheritance diagram for HF::Transport::AbstractLink:
+ Collaboration diagram for HF::Transport::AbstractLink:

Public Member Functions

uint16_t address () const
 Get the address of the device this link corresponds to. More...
 
void address (uint16_t addr)
 Set the address of this link corresponds to. More...
 
const HF::UID::UID uid () const
 Return the end-point UID associated with this link. More...
 

Protected Attributes

HF::UID::UID_T_uid
 UID associated with this link.
 
uint16_t _address
 HAN-FUN address associated with the remote end-point.
 

Detailed Description

Parent class for all HF::Transport::Link implementations.

Definition at line 196 of file inc/hanfun/transport.h.

Member Function Documentation

◆ address() [1/2]

uint16_t HF::Transport::AbstractLink::address ( ) const
inlinevirtual

Get the address of the device this link corresponds to.

Returns
the address of the device for this link.

Implements HF::Transport::Link.

Definition at line 215 of file inc/hanfun/transport.h.

References _address.

216  {
217  return _address;
218  }

◆ address() [2/2]

void HF::Transport::AbstractLink::address ( uint16_t  addr)
inlinevirtual

Set the address of this link corresponds to.

Parameters
[in]addrthe address value to set.

Implements HF::Transport::Link.

Definition at line 220 of file inc/hanfun/transport.h.

References _address.

221  {
222  _address = addr;
223  }

◆ uid()

const HF::UID::UID HF::Transport::AbstractLink::uid ( ) const
inlinevirtual

Return the end-point UID associated with this link.

For example, for a ULE transport layer this would return the RFPI/IPUI of the remote device.

Returns
the UID of the remote device of this link.

Implements HF::Transport::Link.

Definition at line 225 of file inc/hanfun/transport.h.

References _uid.

226  {
227  return HF::UID::UID(_uid);
228  }
UID
Profiles UID&#39;s
Definition: profiles.h:60

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