Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Discovery/Inc/check_warning.h Sun Apr 27 10:14:25 2025 +0200 +++ b/Discovery/Inc/check_warning.h Mon Apr 21 21:00:34 2025 +0200 @@ -30,6 +30,12 @@ #include <stdint.h> #include "data_central.h" + +#define REQUEST_BUZZER_OFF (0u) +#define REQUEST_BUZZER_ONCE (1u) +#define REQUEST_BUZZER_CONTINUOUS (2u) + + /* Exported function prototypes ----------------------------------------------*/ void check_warning(void); void check_warning2(SDiveState *pDiveState); @@ -46,5 +52,7 @@ uint8_t getSetpointLowId(void); uint8_t getSetpointDecoId(void); void requestBuzzerActivation(uint8_t active); +uint8_t getBuzzerActivationRequest(); uint8_t getBuzzerActivationState(); +void deactivateBuzzer(); #endif // CHECK_WARNING_H
