EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoISimpleBidirectionalProfile Class Referenceabstract

An interface for profiles which support bidirectional communication, but do not indicate the direction of the messages. More...

#include <eoISimpleBidirectionalProfile.h>

Inheritance diagram for eoISimpleBidirectionalProfile:

Public Member Functions

virtual eoReturn SetDirection (SIMPLE_DIRECTION direction)=0
 
virtual eoChannelInfoGetOutChannel (CHANNEL_TYPE type, uint8_t subType)
 
virtual eoChannelInfoGetOutChannel (CHANNEL_TYPE type)=0
 
virtual eoChannelInfoGetOutChannel (uint8_t channelNumber)=0
 

Protected Attributes

SIMPLE_DIRECTION direction
 

Detailed Description

An interface for profiles which support bidirectional communication, but do not indicate the direction of the messages.

This interface is an helper interface for EEProfiles which communicate bidirectional, but do not indicate in the message itself which direction is used (e.g. Command Bytes). Profiles using this interface use the direction bit to indicate in which way messages should be created/ parsed. If the direction is set to eoController, eoLink is the Controller and parses the messages as Actuator messages and send messages as Controller. If the direction is set to eoActuator, eoLink simulates an Actuator device. The default direction is eoController. When Changing the direction, the values are getting invalid.

Member Function Documentation

◆ GetOutChannel() [1/3]

virtual eoChannelInfo* eoISimpleBidirectionalProfile::GetOutChannel ( CHANNEL_TYPE  type,
uint8_t  subType 
)
inlinevirtual

Returns the outChannel for the selected type and subtype

Parameters
typeCHANNEL_TYPE
subTypeis either the numeric "subChannelNUmber" (temperature CHannel 0,1,2,3) or a specified keyword for it(see profile)
Returns
Pointer to Channel

Reimplemented in eoEEP_A520xx, eoEEP_A52006, eoEEP_D20611, eoEEP_D20610, eoEEP_D2A0xx, and eoEEP_D20640.

◆ GetOutChannel() [2/3]

virtual eoChannelInfo* eoISimpleBidirectionalProfile::GetOutChannel ( CHANNEL_TYPE  type)
pure virtual

Returns the outChannel for the selected type

Parameters
typeCHANNEL_TYPE
Returns
Pointer to ChannelInfo or Null

Implemented in eoEEP_A520xx, eoEEP_A52006, eoEEP_D20611, eoEEP_D20610, eoEEP_D2A0xx, and eoEEP_D20640.

◆ GetOutChannel() [3/3]

virtual eoChannelInfo* eoISimpleBidirectionalProfile::GetOutChannel ( uint8_t  channelNumber)
pure virtual

returns the pointer to eoChannelInfo for the selected outChannelNumber or NULL

Parameters
channelNumber
Returns
Pointer to Channel

Implemented in eoEEP_A520xx, eoEEP_A52006, eoEEP_D20611, eoEEP_D20610, eoEEP_D2A0xx, and eoEEP_D20640.

◆ SetDirection()

virtual eoReturn eoISimpleBidirectionalProfile::SetDirection ( SIMPLE_DIRECTION  direction)
pure virtual

Set the direction of the profile, if the specific profile does not support Bidirectional mode, nothing happens.

Parameters
direction

Implemented in eoEEP_A520xx, eoEEP_A52006, eoEEP_D20611, eoEEP_D20610, eoEEP_D2A0xx, and eoEEP_D20640.