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(
89 void processFirmwareUpdateConfig(
96 void fillHomeScreenContentConfig(
98 void fillHomeScreenDelayConfig(
100 void fillAutomaticTimeSyncConfig(
102 void fillDisableUserInterfaceConfig(
104 void fillHomeScreenDelayTypeConfig(
109 bool endFlagReceived =
false;
110 uint8_t resultCode = 255;
111 int messageCounter = 0;
112 bool firstDeviceConfigAfterRegistration =
false;
113 uint64_t requireSetDeviceConfigFields = 0;
115 static uint64_t fieldBitsUsedByDevice;
116 static uint64_t homeScreenContentAvailable;
118 static uint8_t resendAttempts;