comparison Discovery/Inc/check_warning.h @ 996:8507a87f6401 GasConsumption

Improve buzzer opreation: In the previous version the buzzer was operated in case warning events. In the new version the buzzer is inactive in surface mode in order to prevent annoying warning just because e.g. the sensors are not connected. In addition it is now possible to request a short activation only e.g. in case of the activation of the buzzer via the menu.
author Ideenmodellierer
date Mon, 21 Apr 2025 21:00:34 +0200
parents e9c37071933b
children
comparison
equal deleted inserted replaced
995:768ed327ee69 996:8507a87f6401
28 #define CHECK_WARNING_H 28 #define CHECK_WARNING_H
29 29
30 #include <stdint.h> 30 #include <stdint.h>
31 #include "data_central.h" 31 #include "data_central.h"
32 32
33
34 #define REQUEST_BUZZER_OFF (0u)
35 #define REQUEST_BUZZER_ONCE (1u)
36 #define REQUEST_BUZZER_CONTINUOUS (2u)
37
38
33 /* Exported function prototypes ----------------------------------------------*/ 39 /* Exported function prototypes ----------------------------------------------*/
34 void check_warning(void); 40 void check_warning(void);
35 void check_warning2(SDiveState *pDiveState); 41 void check_warning2(SDiveState *pDiveState);
36 uint8_t actualBetterGasId(void); 42 uint8_t actualBetterGasId(void);
37 uint8_t actualBetterBailoutGasId(void); 43 uint8_t actualBetterBailoutGasId(void);
44 50
45 uint8_t getSetpointHighId(void); 51 uint8_t getSetpointHighId(void);
46 uint8_t getSetpointLowId(void); 52 uint8_t getSetpointLowId(void);
47 uint8_t getSetpointDecoId(void); 53 uint8_t getSetpointDecoId(void);
48 void requestBuzzerActivation(uint8_t active); 54 void requestBuzzerActivation(uint8_t active);
55 uint8_t getBuzzerActivationRequest();
49 uint8_t getBuzzerActivationState(); 56 uint8_t getBuzzerActivationState();
57 void deactivateBuzzer();
50 #endif // CHECK_WARNING_H 58 #endif // CHECK_WARNING_H