HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::Interfaces::Interface< _uid, Parent > Struct Template Reference

Helper class template for parent class implementation of the interfaces. More...

#include <interface.h>

+ Inheritance diagram for HF::Interfaces::Interface< _uid, Parent >:
+ Collaboration diagram for HF::Interfaces::Interface< _uid, Parent >:

Public Member Functions

uint16_t uid () const
 This method returns the interface UID. More...
 

Detailed Description

template<uint16_t _uid, typename Parent = AbstractInterface>
struct HF::Interfaces::Interface< _uid, Parent >

Helper class template for parent class implementation of the interfaces.

Template Parameters
_uidinterface UID to be used by the interface.

Definition at line 371 of file interface.h.

Member Function Documentation

◆ uid()

template<uint16_t _uid, typename Parent = AbstractInterface>
uint16_t HF::Interfaces::Interface< _uid, Parent >::uid ( ) const
inline

This method returns the interface UID.

Subclasses MUST override this method to provide a valid value for the interface being implemented.

This method returns a uint16_t and not a Interface::UID, to provide support for proprietary interfaces.

Returns
the UID for the interface.

Reimplemented in HF::Units::Unit< HF::Profiles::SimpleOnOffSwitch >, and HF::Units::Unit< HF::Profiles::SimpleLight >.

Definition at line 374 of file interface.h.

375  {
376  return _uid;
377  }

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