comparison Common/Inc/settings.h @ 1082:1aa45000f92c Icon_Integration tip

Added configuration menu for HUD functions: The V1 HUD has 4 functions (holes) which may be realized by one or two LEDs. The functions (like ppo2 monitoring or ascent speed) may be configurated by the diver using the HUD menu. The functions which may be selected depend on the HW configuration (e.g. the connected sensors) and the number of LEDs which are needed to realize the function. The previous HUD test implementation may still be activate usind the compile switch ENABLE_HUD_TESTING
author Ideenmodellierer
date Sun, 15 Mar 2026 21:40:35 +0100
parents 3c73180fde1d
children
comparison
equal deleted inserted replaced
1081:1b38d7b8da35 1082:1aa45000f92c
94 #define UART_MAX_PROTOCOL (2u) 94 #define UART_MAX_PROTOCOL (2u)
95 95
96 #define FUTURE_SPARE_SIZE (0u) /* Applied for reuse of old, not used, scooter block (was 32 bytes)*/ 96 #define FUTURE_SPARE_SIZE (0u) /* Applied for reuse of old, not used, scooter block (was 32 bytes)*/
97 97
98 #define NUMBER_OF_PROFILES (4u) 98 #define NUMBER_OF_PROFILES (4u)
99
100 #define MAX_NUMBER_OF_HUD_FCTS (6u) /* number of functions which may be selected at once (is not equal to LEDs involved) */
99 101
100 typedef enum 102 typedef enum
101 { 103 {
102 O2_SENSOR_SOURCE_OPTIC = 0, 104 O2_SENSOR_SOURCE_OPTIC = 0,
103 O2_SENSOR_SOURCE_ANALOG, 105 O2_SENSOR_SOURCE_ANALOG,
332 StimeZone timeZone; 334 StimeZone timeZone;
333 uint8_t warningBuzzer; 335 uint8_t warningBuzzer;
334 /* new in 0xFFFF002d */ 336 /* new in 0xFFFF002d */
335 uint8_t profileName[NUMBER_OF_PROFILES][9]; 337 uint8_t profileName[NUMBER_OF_PROFILES][9];
336 uint8_t activeProfile; 338 uint8_t activeProfile;
339 /* new in 0xFFFF002F */
340 uint8_t hudFunction[MAX_NUMBER_OF_HUD_FCTS];
337 } SSettings; 341 } SSettings;
338 342
339 uint8_t writeData(uint8_t *); 343 uint8_t writeData(uint8_t *);
340 uint8_t readData(uint8_t what,uint8_t *); 344 uint8_t readData(uint8_t what,uint8_t *);
341 uint8_t readDataLimits__8and16BitValues_4and7BytesOutput(uint8_t what, uint8_t * data); 345 uint8_t readDataLimits__8and16BitValues_4and7BytesOutput(uint8_t what, uint8_t * data);