32 static void RegisterConfigField(uint64_t fieldBit);
35 static void SetHomeScreenContentAvailable(uint64_t allValues);
36 static uint64_t GetHomeScreenContentAvailable();
37 static enum HomeScreenContent HomeScreenContentBitToEnum(uint64_t fieldBit);
38 static uint64_t HomeScreenEnumToBit(
enum HomeScreenContent type);
39 static uint64_t HomeScreenIntToBit(
int mode);
40 static void SetModbusProperties(
42 static void SetThermalProtectionProperties(
44 static void SetInputActivationProperties(
46 static void ClearResendAttemptsCounter();
48 static uint64_t GetRegisteredConfigFieldsForTests();
49 static void SetRegisteredConfigFieldsForTests(uint64_t fields);
51 static void SetInputActivationPropertiesForTests(
60 uint8_t getResultCode()
const;
61 bool isEndFlagReceived()
const;
62 bool isSetDeviceConfigRequired()
const;
68 void processStatusLedConfig(uint64_t fieldBit,
70 void processPowerStatusLedConfig(uint64_t fieldBit,
72 void processScreenBrightnessConfig(uint64_t fieldBit,
74 void processButtonVolumeConfig(uint64_t fieldBit,
76 void processHomeScreenContentConfig(uint64_t fieldBit,
78 void processHomeScreenDelayConfig(uint64_t fieldBit,
80 void processAutomaticTimeSyncConfig(uint64_t fieldBit,
82 void processDisableUserInterfaceConfig(
84 void processHomeScreenDelayTypeConfig(
87 void processThermalProtectionConfig(
89 void processInputActivationConfig(
91 void processFirmwareUpdateConfig(
98 void fillHomeScreenContentConfig(
100 void fillHomeScreenDelayConfig(
102 void fillAutomaticTimeSyncConfig(
104 void fillDisableUserInterfaceConfig(
106 void fillHomeScreenDelayTypeConfig(
109 void fillThermalProtectionConfig(
111 void fillInputActivationConfig(
115 bool endFlagReceived =
false;
116 uint8_t resultCode = 255;
117 int messageCounter = 0;
118 bool firstDeviceConfigAfterRegistration =
false;
119 uint64_t requireSetDeviceConfigFields = 0;
121 static uint64_t fieldBitsUsedByDevice;
122 static uint64_t homeScreenContentAvailable;
126 static uint8_t resendAttempts;