comparison Discovery/Inc/tMenuCvOptionText.h @ 1071:b4a79464caf7 Icon_Integration

Dynamic menu creation for CV views: Because of the increasing features of the OSTC the maintenance of the the menus becomes difficult. Some are not available because of HW version or connected sensors. To keep the "legacy" menus stable the functionality of the cv options page has been increased. Based on enabled cv views and connected sensors the page will be filled dynamically. The page items allow quick acces to the view related options. For the first implementation the views: compass, timer, sensor O2 and sensor CO2 are supported.
author Ideenmodellierer
date Thu, 19 Feb 2026 13:28:37 +0100
parents
children
comparison
equal deleted inserted replaced
1070:4499227a2db8 1071:b4a79464caf7
1 ///////////////////////////////////////////////////////////////////////////////
2 /// -*- coding: UTF-8 -*-
3 ///
4 /// \file Discovery/Inc/tMenuCvOption.h
5 /// \brief Header file text line provider functions
6 /// \author heinrichs weikamp gmbh
7 /// \date 03-Feb-2026
8 ///
9 /// $Id$
10 ///////////////////////////////////////////////////////////////////////////////
11 /// \par Copyright (c) 2014-2026 Heinrichs Weikamp gmbh
12 ///
13 /// This program is free software: you can redistribute it and/or modify
14 /// it under the terms of the GNU General Public License as published by
15 /// the Free Software Foundation, either version 3 of the License, or
16 /// (at your option) any later version.
17 ///
18 /// This program is distributed in the hope that it will be useful,
19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of
20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 /// GNU General Public License for more details.
22 ///
23 /// You should have received a copy of the GNU General Public License
24 /// along with this program. If not, see <http://www.gnu.org/licenses/>.
25 //////////////////////////////////////////////////////////////////////////////
26
27 /* Define to prevent recursive inclusion -------------------------------------*/
28 #ifndef TMENU_CVOPTIONTEXT_H
29 #define TMENU_CVOPTIONTEXT_H
30
31 /* Includes ------------------------------------------------------------------*/
32 /** @addtogroup Template
33 * @{
34 */
35 #include <stdint.h>
36
37 enum CVOPTIONS /* the order defines the priority as well */
38 {
39 CVOPT_Compass = 0,
40 CVOPT_O2_Sensor,
41 CVOPT_CO2_Sensor,
42 CVOPT_Pressure_Sensor,
43 CVOPT_Timer,
44 CVOPT_END
45 };
46
47 typedef uint8_t (*refreshFunc_t)(char *);
48
49 /* Exported variables --------------------------------------------------------*/
50
51
52
53 /* Exported functions --------------------------------------------------------*/
54
55 uint8_t tMCvOptText_BuildDynamicContentList();
56 refreshFunc_t* tMCvOptText_GetTable();
57 uint8_t tMCvOptText_GetTableItemCnt();
58
59 uint8_t tMCvOptText_refreshCompass(char* pText);
60 uint8_t tMCvOptText_refreshTimer(char* pText);
61 uint8_t tMCvOptText_refreshO2(char* pText);
62 uint8_t tMCvOptText_refreshCO2(char* pText);
63
64 #endif /* TMENU_CVOPTIONTEXT_H */