supla-device
Loading...
Searching...
No Matches
at_channel.h
1// SPDX-FileCopyrightText: AC SOFTWARE SP. Z O.O.
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#ifndef SRC_SUPLA_AT_CHANNEL_H_
5#define SRC_SUPLA_AT_CHANNEL_H_
6
7#include <stdint.h>
8#include <supla/channels/channel.h>
9
10namespace Supla {
11
12class AtChannel : public Channel {
13 public:
14 void sendUpdate() override;
15 void pushAction(uint32_t action);
16 void activateAction(uint32_t action);
17 uint32_t popAction();
18 void setRelatedChannel(uint8_t channelNumber);
19 void setDisablesLocalOperation(uint32_t actions);
20 void enableValueUpdates();
21
22 protected:
23 void setActionTriggerProperties(const TActionTriggerProperties &properties);
24
25 uint32_t actionToSend = 0;
26 bool valueUpdatePending = false;
27 bool valueUpdatesEnabled = false;
28};
29
30}; // namespace Supla
31
32#endif // SRC_SUPLA_AT_CHANNEL_H_
Definition at_channel.h:12
Definition channel.h:26
Definition proto.h:858