Class CbRelayStatus

Inheritance Relationships

Base Type

  • public smacc2::SmaccAsyncClientBehavior

Class Documentation

class CbRelayStatus : public smacc2::SmaccAsyncClientBehavior

Client behavior to read relay channel status.

Can read single channel or all channels. Posts EvCbSuccess on successful read, EvCbFailure on error.

Public Functions

inline CbRelayStatus()

Construct behavior to read all channel statuses.

inline explicit CbRelayStatus(int channel)

Construct behavior to read a specific channel status.

Parameters:

channel – Relay channel number (1-8)

inline virtual ~CbRelayStatus()
template<typename TOrthogonal, typename TSourceObject>
inline void onStateOrthogonalAllocation()
inline virtual void onEntry() override
inline uint8_t getChannelStates() const

Get the last read channel states (bitmask)

Returns:

Bitmask of channel states (bit 0 = channel 1, etc.)

inline virtual void onStatusRead(uint8_t channelStates)

Virtual callback for status read completion Override in derived classes for custom handling.

Parameters:

channelStates – Bitmask of channel states