RT1050 GUI demo using emWin library

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GUIDRV_TemplateI.h Source File

GUIDRV_TemplateI.h

00001 /*********************************************************************
00002 *                SEGGER Microcontroller GmbH & Co. KG                *
00003 *        Solutions for real time microcontroller applications        *
00004 **********************************************************************
00005 *                                                                    *
00006 *        (c) 1996 - 2016  SEGGER Microcontroller GmbH & Co. KG       *
00007 *                                                                    *
00008 *        Internet: www.segger.com    Support:  support@segger.com    *
00009 *                                                                    *
00010 **********************************************************************
00011 
00012 ** emWin V5.38 - Graphical user interface for embedded applications **
00013 All  Intellectual Property rights  in the Software belongs to  SEGGER.
00014 emWin is protected by  international copyright laws.  Knowledge of the
00015 source code may not be used to write a similar product.  This file may
00016 only be used in accordance with the following terms:
00017 
00018 The software has been licensed to  NXP Semiconductors USA, Inc.  whose
00019 registered  office  is  situated  at 411 E. Plumeria Drive, San  Jose,
00020 CA 95134, USA  solely for  the  purposes  of  creating  libraries  for
00021 NXPs M0, M3/M4 and  ARM7/9 processor-based  devices,  sublicensed  and
00022 distributed under the terms and conditions of the NXP End User License
00023 Agreement.
00024 Full source code is available at: www.segger.com
00025 
00026 We appreciate your understanding and fairness.
00027 ----------------------------------------------------------------------
00028 Licensing information
00029 
00030 Licensor:                 SEGGER Microcontroller Systems LLC
00031 Licensed to:              NXP Semiconductors, 1109 McKay Dr, M/S 76, San Jose, CA 95131, USA
00032 Licensed SEGGER software: emWin
00033 License number:           GUI-00186
00034 License model:            emWin License Agreement, dated August 20th 2011
00035 Licensed product:         -
00036 Licensed platform:        NXP's ARM 7/9, Cortex-M0,M3,M4
00037 Licensed number of seats: -
00038 ----------------------------------------------------------------------
00039 File        : GUIDRV_TemplateI.h
00040 Purpose     : Interface definition for GUIDRV_TemplateI driver
00041 ---------------------------END-OF-HEADER------------------------------
00042 */
00043 
00044 #ifndef GUIDRV_TEMPLATE_I_H
00045 #define GUIDRV_TEMPLATE_I_H
00046 
00047 #if defined(__cplusplus)
00048 extern "C" {     /* Make sure we have C-declarations in C++ programs */
00049 #endif
00050 
00051 /*********************************************************************
00052 *
00053 *       Configuration structure
00054 */
00055 typedef struct {
00056   //
00057   // Driver specific configuration items
00058   //
00059   int Dummy;
00060 } CONFIG_TEMPLATE_I;
00061 
00062 /*********************************************************************
00063 *
00064 *       Display drivers
00065 */
00066 //
00067 // Addresses
00068 //
00069 extern const GUI_DEVICE_API GUIDRV_TEMPLATE_I_16_API;
00070 extern const GUI_DEVICE_API GUIDRV_TEMPLATE_I_OY_16_API;
00071 extern const GUI_DEVICE_API GUIDRV_TEMPLATE_I_OX_16_API;
00072 extern const GUI_DEVICE_API GUIDRV_TEMPLATE_I_OXY_16_API;
00073 extern const GUI_DEVICE_API GUIDRV_TEMPLATE_I_OS_16_API;
00074 extern const GUI_DEVICE_API GUIDRV_TEMPLATE_I_OSY_16_API;
00075 extern const GUI_DEVICE_API GUIDRV_TEMPLATE_I_OSX_16_API;
00076 extern const GUI_DEVICE_API GUIDRV_TEMPLATE_I_OSXY_16_API;
00077 
00078 //
00079 // Macros to be used in configuration files
00080 //
00081 #if defined(WIN32) && !defined(LCD_SIMCONTROLLER)
00082 
00083   #define GUIDRV_TEMPLATE_I_16       &GUIDRV_Win_API
00084   #define GUIDRV_TEMPLATE_I_OY_16    &GUIDRV_Win_API
00085   #define GUIDRV_TEMPLATE_I_OX_16    &GUIDRV_Win_API
00086   #define GUIDRV_TEMPLATE_I_OXY_16   &GUIDRV_Win_API
00087   #define GUIDRV_TEMPLATE_I_OS_16    &GUIDRV_Win_API
00088   #define GUIDRV_TEMPLATE_I_OSY_16   &GUIDRV_Win_API
00089   #define GUIDRV_TEMPLATE_I_OSX_16   &GUIDRV_Win_API
00090   #define GUIDRV_TEMPLATE_I_OSXY_16  &GUIDRV_Win_API
00091 
00092 #else
00093 
00094   #define GUIDRV_TEMPLATE_I_16       &GUIDRV_TEMPLATE_I_16_API
00095   #define GUIDRV_TEMPLATE_I_OY_16    &GUIDRV_TEMPLATE_I_OY_16_API
00096   #define GUIDRV_TEMPLATE_I_OX_16    &GUIDRV_TEMPLATE_I_OX_16_API
00097   #define GUIDRV_TEMPLATE_I_OXY_16   &GUIDRV_TEMPLATE_I_OXY_16_API
00098   #define GUIDRV_TEMPLATE_I_OS_16    &GUIDRV_TEMPLATE_I_OS_16_API
00099   #define GUIDRV_TEMPLATE_I_OSY_16   &GUIDRV_TEMPLATE_I_OSY_16_API
00100   #define GUIDRV_TEMPLATE_I_OSX_16   &GUIDRV_TEMPLATE_I_OSX_16_API
00101   #define GUIDRV_TEMPLATE_I_OSXY_16  &GUIDRV_TEMPLATE_I_OSXY_16_API
00102 
00103 #endif
00104 
00105 /*********************************************************************
00106 *
00107 *       Public routines
00108 */
00109 void GUIDRV_TemplateI_Config    (GUI_DEVICE * pDevice, CONFIG_TEMPLATE_I * pConfig);
00110 void GUIDRV_TemplateI_SetBus_XXX(GUI_DEVICE * pDevice, GUI_PORT_API * pHW_API);
00111 void GUIDRV_TemplateI_SetFuncXXX(GUI_DEVICE * pDevice);
00112 
00113 #if defined(__cplusplus)
00114 }
00115 #endif
00116 
00117 #endif
00118 
00119 /*************************** End of file ****************************/