41class RemoteDeviceConfig {
45 static void RegisterConfigField(uint64_t fieldBit);
48 static void SetHomeScreenContentAvailable(uint64_t allValues);
49 static uint64_t GetHomeScreenContentAvailable();
50 static enum HomeScreenContent HomeScreenContentBitToEnum(uint64_t fieldBit);
51 static uint64_t HomeScreenEnumToBit(
enum HomeScreenContent type);
52 static uint64_t HomeScreenIntToBit(
int mode);
53 static void SetModbusProperties(
55 static void ClearResendAttemptsCounter();
57 explicit RemoteDeviceConfig(
bool firstDeviceConfigAfterRegistration =
false);
58 virtual ~RemoteDeviceConfig();
62 uint8_t getResultCode()
const;
63 bool isEndFlagReceived()
const;
64 bool isSetDeviceConfigRequired()
const;
70 void processStatusLedConfig(uint64_t fieldBit,
72 void processPowerStatusLedConfig(uint64_t fieldBit,
74 void processScreenBrightnessConfig(uint64_t fieldBit,
76 void processButtonVolumeConfig(uint64_t fieldBit,
78 void processHomeScreenContentConfig(uint64_t fieldBit,
80 void processHomeScreenDelayConfig(uint64_t fieldBit,
82 void processAutomaticTimeSyncConfig(uint64_t fieldBit,
84 void processDisableUserInterfaceConfig(
86 void processHomeScreenDelayTypeConfig(
94 void fillHomeScreenContentConfig(
96 void fillHomeScreenDelayConfig(
98 void fillAutomaticTimeSyncConfig(
100 void fillDisableUserInterfaceConfig(
102 void fillHomeScreenDelayTypeConfig(
106 bool endFlagReceived =
false;
107 uint8_t resultCode = 255;
108 int messageCounter = 0;
109 bool firstDeviceConfigAfterRegistration =
false;
110 uint64_t requireSetDeviceConfigFields = 0;
112 static uint64_t fieldBitsUsedByDevice;
113 static uint64_t homeScreenContentAvailable;
115 static uint8_t resendAttempts;