damon zhang / Mbed OS rt1050_emwin_gui_demo
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GUIDRV_S1D13748.h Source File

GUIDRV_S1D13748.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_S1D13748.h
00040 Purpose     : Interface definition for GUIDRV_S1D13748 driver
00041 ---------------------------END-OF-HEADER------------------------------
00042 */
00043 
00044 #ifndef GUIDRV_S1D13748_H
00045 #define GUIDRV_S1D13748_H
00046 
00047 #if defined(__cplusplus)
00048 extern "C" {     /* Make sure we have C-declarations in C++ programs */
00049 #endif
00050 
00051 #define GUIDRV_S1D13748_USE_MAIN 0
00052 #define GUIDRV_S1D13748_USE_PIP1 1
00053 #define GUIDRV_S1D13748_USE_PIP2 2
00054 
00055 /*********************************************************************
00056 *
00057 *       Configuration structure
00058 */
00059 typedef struct {
00060   //
00061   // Driver specific configuration items
00062   //
00063   U32 BufferOffset;
00064   int UseLayer;
00065   int WriteBufferSize;
00066 } CONFIG_S1D13748;
00067 
00068 /*********************************************************************
00069 *
00070 *       Display drivers
00071 */
00072 //
00073 // Addresses
00074 //
00075 extern const GUI_DEVICE_API GUIDRV_S1D13748_16_API;
00076 extern const GUI_DEVICE_API GUIDRV_S1D13748_OY_16_API;
00077 extern const GUI_DEVICE_API GUIDRV_S1D13748_OX_16_API;
00078 extern const GUI_DEVICE_API GUIDRV_S1D13748_OXY_16_API;
00079 extern const GUI_DEVICE_API GUIDRV_S1D13748_OS_16_API;
00080 extern const GUI_DEVICE_API GUIDRV_S1D13748_OSY_16_API;
00081 extern const GUI_DEVICE_API GUIDRV_S1D13748_OSX_16_API;
00082 extern const GUI_DEVICE_API GUIDRV_S1D13748_OSXY_16_API;
00083 
00084 //
00085 // Macros to be used in configuration files
00086 //
00087 #if defined(WIN32) && !defined(LCD_SIMCONTROLLER)
00088 
00089   #define GUIDRV_S1D13748_16       &GUIDRV_Win_API
00090   #define GUIDRV_S1D13748_OY_16    &GUIDRV_Win_API
00091   #define GUIDRV_S1D13748_OX_16    &GUIDRV_Win_API
00092   #define GUIDRV_S1D13748_OXY_16   &GUIDRV_Win_API
00093   #define GUIDRV_S1D13748_OS_16    &GUIDRV_Win_API
00094   #define GUIDRV_S1D13748_OSY_16   &GUIDRV_Win_API
00095   #define GUIDRV_S1D13748_OSX_16   &GUIDRV_Win_API
00096   #define GUIDRV_S1D13748_OSXY_16  &GUIDRV_Win_API
00097 
00098 #else
00099 
00100   #define GUIDRV_S1D13748_16       &GUIDRV_S1D13748_16_API
00101   #define GUIDRV_S1D13748_OY_16    &GUIDRV_S1D13748_OY_16_API
00102   #define GUIDRV_S1D13748_OX_16    &GUIDRV_S1D13748_OX_16_API
00103   #define GUIDRV_S1D13748_OXY_16   &GUIDRV_S1D13748_OXY_16_API
00104   #define GUIDRV_S1D13748_OS_16    &GUIDRV_S1D13748_OS_16_API
00105   #define GUIDRV_S1D13748_OSY_16   &GUIDRV_S1D13748_OSY_16_API
00106   #define GUIDRV_S1D13748_OSX_16   &GUIDRV_S1D13748_OSX_16_API
00107   #define GUIDRV_S1D13748_OSXY_16  &GUIDRV_S1D13748_OSXY_16_API
00108 
00109 #endif
00110 
00111 /*********************************************************************
00112 *
00113 *       Public routines
00114 */
00115 void GUIDRV_S1D13748_Config  (GUI_DEVICE * pDevice, CONFIG_S1D13748 * pConfig);
00116 void GUIDRV_S1D13748_SetBus16(GUI_DEVICE * pDevice, GUI_PORT_API * pHW_API);
00117 
00118 #if defined(__cplusplus)
00119 }
00120 #endif
00121 
00122 #endif
00123 
00124 /*************************** End of file ****************************/