Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_F746NG_patch mbed-rtos mbed
k_module.h
00001 /** 00002 ****************************************************************************** 00003 * @file k_module.h 00004 * @author MCD Application Team 00005 * @version V1.1.0 00006 * @date 21-September-2015 00007 * @brief Header for k_module.c file 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> 00012 * 00013 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 00014 * You may not use this file except in compliance with the License. 00015 * You may obtain a copy of the License at: 00016 * 00017 * http://www.st.com/software_license_agreement_liberty_v2 00018 * 00019 * Unless required by applicable law or agreed to in writing, software 00020 * distributed under the License is distributed on an "AS IS" BASIS, 00021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00022 * See the License for the specific language governing permissions and 00023 * limitations under the License. 00024 * 00025 ****************************************************************************** 00026 */ 00027 00028 /* Define to prevent recursive inclusion -------------------------------------*/ 00029 #ifndef __K_MODULE_H 00030 #define __K_MODULE_H 00031 00032 #ifdef __cplusplus 00033 extern "C" { 00034 #endif 00035 00036 /* Includes ------------------------------------------------------------------*/ 00037 #include "main.h" 00038 00039 /* Exported types ------------------------------------------------------------*/ 00040 typedef struct 00041 { 00042 uint8_t id; 00043 const char *name; 00044 GUI_CONST_STORAGE GUI_BITMAP ** open_icon; 00045 GUI_CONST_STORAGE GUI_BITMAP ** close_icon; 00046 void (*startup) (WM_HWIN , uint16_t, uint16_t ); 00047 void (*DirectOpen) (char * ); 00048 } 00049 K_ModuleItem_Typedef; 00050 00051 typedef struct 00052 { 00053 const K_ModuleItem_Typedef *module; 00054 uint8_t in_use; 00055 uint8_t win_state; 00056 } 00057 K_ModulePropertyTypedef; 00058 00059 typedef struct 00060 { 00061 char ext[4]; 00062 const K_ModuleItem_Typedef *module; 00063 } 00064 K_ModuleOpenTypedef; 00065 00066 typedef void K_GET_DIRECT_OPEN_FUNC(char *); 00067 00068 /* Structure for menu items */ 00069 typedef struct { 00070 char * sText; 00071 U16 Id; 00072 U16 Flags; 00073 } MENU_ITEM; 00074 00075 extern K_ModulePropertyTypedef module_prop[]; 00076 /* Exported constants --------------------------------------------------------*/ 00077 /* Exported macros -----------------------------------------------------------*/ 00078 /* Exported functions ------------------------------------------------------- */ 00079 void k_InitMenu(void); 00080 void k_StartUp(void); 00081 void k_SetGuiProfile(void); 00082 void k_ModuleInit(void); 00083 void k_UpdateLog(char *Msg); 00084 uint8_t k_ModuleAdd(K_ModuleItem_Typedef *module); 00085 uint8_t k_ModuleGetIndex(K_ModuleItem_Typedef *module); 00086 void k_ModuleRemove(K_ModuleItem_Typedef *module); 00087 uint8_t k_ModuleGetNumber(void); 00088 uint8_t k_ModuleOpenLink(K_ModuleItem_Typedef *module, char *ext); 00089 K_GET_DIRECT_OPEN_FUNC *k_ModuleCheckLink(char *ext); 00090 00091 #ifdef __cplusplus 00092 } 00093 #endif 00094 00095 #endif /*__K_MODULE_H */ 00096 00097 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 14:57:35 by
1.7.2