19#ifndef SRC_SUPLA_DEVICE_REGISTER_DEVICE_H_
20#define SRC_SUPLA_DEVICE_REGISTER_DEVICE_H_
22#include <supla-common/proto.h>
27namespace RegisterDevice {
29TDS_SuplaRegisterDeviceHeader *getRegDevHeaderPtr();
33TDS_SuplaDeviceChannel_D *getChannelPtr_D(
int index);
34TDS_SuplaDeviceChannel_E *getChannelPtr_E(
int index);
41bool isServerNameEmpty();
45const char *getAuthKey();
46const char *getSoftVer();
48void fillGUIDText(
char text[37]);
50void setGUID(
const char *GUID);
51void setAuthKey(
const char *AuthKey);
52void setSoftVer(
const char *SoftVer);
53void setName(
const char *Name);
55void setEmail(
const char *email);
56void setServerName(
const char *server);
58const char *getEmail();
59const char *getServerName();
61bool isSuplaPublicServerConfigured();
62bool isSleepingDeviceEnabled();
63bool isRemoteDeviceConfigEnabled();
64bool isPairingSubdeviceEnabled();
65bool isAutomaticFirmwareUpdateEnabled();
67void setManufacturerId(int16_t mfrId);
68void setProductId(int16_t productId);
70int16_t getManufacturerId();
71int16_t getProductId();
73void addFlags(int32_t newFlags);
74void removeFlags(int32_t removedFlags);
77int getNextFreeChannelNumber();
78bool isChannelNumberFree(
int channelNumber);
79void addChannel(
int channelNumber);
80void removeChannel(
int channelNumber);
82int getMaxChannelNumberUsed();
85void resetToDefaults();
86int32_t getChannelFunctionList(
int channelNumber);
87int32_t getChannelDefaultFunction(
int channelNumber);
88int32_t getChannelType(
int channelNumber);
89int getChannelNumber(
int index);
90int8_t *getChannelValuePtr(
int channelNumber);
91uint64_t getChannelFlags(
int channelNumber);