Headers for emWin lib

Dependents:   DISCO-F746NG_rtos_test

Committer:
redbird
Date:
Sat Mar 26 22:49:50 2016 +0000
Revision:
0:1bf8f02b0770
new code integration

Who changed what in which revision?

UserRevisionLine numberNew contents of line
redbird 0:1bf8f02b0770 1 /*********************************************************************
redbird 0:1bf8f02b0770 2 * SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 3 * Solutions for real time microcontroller applications *
redbird 0:1bf8f02b0770 4 **********************************************************************
redbird 0:1bf8f02b0770 5 * *
redbird 0:1bf8f02b0770 6 * (c) 1996 - 2014 SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 7 * *
redbird 0:1bf8f02b0770 8 * Internet: www.segger.com Support: support@segger.com *
redbird 0:1bf8f02b0770 9 * *
redbird 0:1bf8f02b0770 10 **********************************************************************
redbird 0:1bf8f02b0770 11
redbird 0:1bf8f02b0770 12 ** emWin V5.24 - Graphical user interface for embedded applications **
redbird 0:1bf8f02b0770 13 All Intellectual Property rights in the Software belongs to SEGGER.
redbird 0:1bf8f02b0770 14 emWin is protected by international copyright laws. Knowledge of the
redbird 0:1bf8f02b0770 15 source code may not be used to write a similar product. This file may
redbird 0:1bf8f02b0770 16 only be used in accordance with the following terms:
redbird 0:1bf8f02b0770 17
redbird 0:1bf8f02b0770 18 The software has been licensed to NXP Semiconductors USA, Inc. whose
redbird 0:1bf8f02b0770 19 registered office is situated at 411 E. Plumeria Drive, San Jose,
redbird 0:1bf8f02b0770 20 CA 95134, USA solely for the purposes of creating libraries for
redbird 0:1bf8f02b0770 21 NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and
redbird 0:1bf8f02b0770 22 distributed under the terms and conditions of the NXP End User License
redbird 0:1bf8f02b0770 23 Agreement.
redbird 0:1bf8f02b0770 24 Full source code is available at: www.segger.com
redbird 0:1bf8f02b0770 25
redbird 0:1bf8f02b0770 26 We appreciate your understanding and fairness.
redbird 0:1bf8f02b0770 27 ----------------------------------------------------------------------
redbird 0:1bf8f02b0770 28 File : GUI_VNC.h
redbird 0:1bf8f02b0770 29 Purpose : Publics for the VNC server
redbird 0:1bf8f02b0770 30 ---------------------------END-OF-HEADER------------------------------
redbird 0:1bf8f02b0770 31
redbird 0:1bf8f02b0770 32 Attention : Do not modify this file ! If you do, you will not
redbird 0:1bf8f02b0770 33 be able do update to a later GUI version !
redbird 0:1bf8f02b0770 34
redbird 0:1bf8f02b0770 35 */
redbird 0:1bf8f02b0770 36
redbird 0:1bf8f02b0770 37 #ifndef GUI_VNC_H
redbird 0:1bf8f02b0770 38 #define GUI_VNC_H
redbird 0:1bf8f02b0770 39
redbird 0:1bf8f02b0770 40 #include "GUI_Private.h"
redbird 0:1bf8f02b0770 41
redbird 0:1bf8f02b0770 42 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 43 extern "C" { /* Make sure we have C-declarations in C++ programs */
redbird 0:1bf8f02b0770 44 #endif
redbird 0:1bf8f02b0770 45
redbird 0:1bf8f02b0770 46
redbird 0:1bf8f02b0770 47 /*********************************************************************
redbird 0:1bf8f02b0770 48 *
redbird 0:1bf8f02b0770 49 * Defines
redbird 0:1bf8f02b0770 50 *
redbird 0:1bf8f02b0770 51 **********************************************************************
redbird 0:1bf8f02b0770 52 */
redbird 0:1bf8f02b0770 53 #define GUI_VNC_NO_ERROR 0
redbird 0:1bf8f02b0770 54 #define GUI_VNC_ERROR_MISC 1
redbird 0:1bf8f02b0770 55 #define GUI_VNC_ERROR_WRONGFORMAT 2
redbird 0:1bf8f02b0770 56
redbird 0:1bf8f02b0770 57 #define GUI_DES_ENCRYPT 0
redbird 0:1bf8f02b0770 58 #define GUI_DES_DECRYPT 1
redbird 0:1bf8f02b0770 59
redbird 0:1bf8f02b0770 60 /*********************************************************************
redbird 0:1bf8f02b0770 61 *
redbird 0:1bf8f02b0770 62 * Types
redbird 0:1bf8f02b0770 63 *
redbird 0:1bf8f02b0770 64 **********************************************************************
redbird 0:1bf8f02b0770 65 */
redbird 0:1bf8f02b0770 66 typedef int (*GUI_tSend) (const U8 * pData, int len, void* pConnectInfo);
redbird 0:1bf8f02b0770 67 typedef int (*GUI_tReceive)( U8 * pData, int len, void* pConnectInfo);
redbird 0:1bf8f02b0770 68
redbird 0:1bf8f02b0770 69 typedef struct GUI_VNC_CONTEXT {
redbird 0:1bf8f02b0770 70 GUI_DEVICE * pDevice;
redbird 0:1bf8f02b0770 71 struct GUI_VNC_CONTEXT * pNext;
redbird 0:1bf8f02b0770 72 int LayerIndex;
redbird 0:1bf8f02b0770 73 int BytesPerPixel;
redbird 0:1bf8f02b0770 74 int BitsPerPixel; // Note, that from within the VNC server the function LCD_GetBitsBerPixel() can not be used because the VNC server runs in a separate thread and the device chain can change during the function call
redbird 0:1bf8f02b0770 75 //
redbird 0:1bf8f02b0770 76 // Connection related data
redbird 0:1bf8f02b0770 77 //
redbird 0:1bf8f02b0770 78 GUI_tSend pfSend;
redbird 0:1bf8f02b0770 79 GUI_tReceive pfReceive;
redbird 0:1bf8f02b0770 80 void * pConnectInfo;
redbird 0:1bf8f02b0770 81 U16 ServerIndex;
redbird 0:1bf8f02b0770 82 //
redbird 0:1bf8f02b0770 83 // Display related info
redbird 0:1bf8f02b0770 84 //
redbird 0:1bf8f02b0770 85 int x0Dirty, y0Dirty, x1Dirty, y1Dirty;
redbird 0:1bf8f02b0770 86 int XSize, YSize;
redbird 0:1bf8f02b0770 87 int xOrg, yOrg, xOrgNew, yOrgNew;
redbird 0:1bf8f02b0770 88 int OrgLock;
redbird 0:1bf8f02b0770 89 //
redbird 0:1bf8f02b0770 90 // Status
redbird 0:1bf8f02b0770 91 //
redbird 0:1bf8f02b0770 92 char ClientSupportsHextile;
redbird 0:1bf8f02b0770 93 char IsBigEndian;
redbird 0:1bf8f02b0770 94 } GUI_VNC_CONTEXT;
redbird 0:1bf8f02b0770 95
redbird 0:1bf8f02b0770 96 typedef struct {
redbird 0:1bf8f02b0770 97 void (* pfGetChallenge)(U8 * pChallenge);
redbird 0:1bf8f02b0770 98 void (* pfGetResponse )(U8 * pResponse );
redbird 0:1bf8f02b0770 99 } GUI_VNC_AUTHENTICATION;
redbird 0:1bf8f02b0770 100
redbird 0:1bf8f02b0770 101 /*********************************************************************
redbird 0:1bf8f02b0770 102 *
redbird 0:1bf8f02b0770 103 * Private Functions
redbird 0:1bf8f02b0770 104 *
redbird 0:1bf8f02b0770 105 **********************************************************************
redbird 0:1bf8f02b0770 106 */
redbird 0:1bf8f02b0770 107 void GUI_VNC_SetDESKey(U8 * pKey, int Mode);
redbird 0:1bf8f02b0770 108 void GUI_VNC_DoDES (U8 * pInblock, U8 * pOutblock);
redbird 0:1bf8f02b0770 109
redbird 0:1bf8f02b0770 110 /*********************************************************************
redbird 0:1bf8f02b0770 111 *
redbird 0:1bf8f02b0770 112 * Public Functions
redbird 0:1bf8f02b0770 113 *
redbird 0:1bf8f02b0770 114 **********************************************************************
redbird 0:1bf8f02b0770 115 */
redbird 0:1bf8f02b0770 116 void GUI_VNC_AttachToLayer (GUI_VNC_CONTEXT * pContext, int LayerIndex);
redbird 0:1bf8f02b0770 117 void GUI_VNC_EnableKeyboardInput(int OnOff);
redbird 0:1bf8f02b0770 118 int GUI_VNC_GetNumConnections (void);
redbird 0:1bf8f02b0770 119 int GUI_VNC_Process (GUI_VNC_CONTEXT * pContext, GUI_tSend pfSend, GUI_tReceive pfReceive, void * pConnectInfo);
redbird 0:1bf8f02b0770 120 void GUI_VNC_RingBell (void);
redbird 0:1bf8f02b0770 121 void GUI_VNC_SetAuthentication (GUI_VNC_AUTHENTICATION * pAuthentication);
redbird 0:1bf8f02b0770 122 void GUI_VNC_SetPassword (U8 * sPassword);
redbird 0:1bf8f02b0770 123 void GUI_VNC_SetProgName (const char * sProgName);
redbird 0:1bf8f02b0770 124 void GUI_VNC_SetSize (unsigned xSize, unsigned ySize);
redbird 0:1bf8f02b0770 125 void GUI_VNC_SetLockFrame (unsigned OnOff);
redbird 0:1bf8f02b0770 126
redbird 0:1bf8f02b0770 127 /**** External routine to link the server to the system ... USER defined ! ****/
redbird 0:1bf8f02b0770 128 int GUI_VNC_X_StartServer(int LayerIndex, int ServerIndex);
redbird 0:1bf8f02b0770 129 void GUI_VNC_X_getpeername(U32 * Addr);
redbird 0:1bf8f02b0770 130
redbird 0:1bf8f02b0770 131 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 132 }
redbird 0:1bf8f02b0770 133 #endif
redbird 0:1bf8f02b0770 134
redbird 0:1bf8f02b0770 135 #endif /* Avoid multiple inclusion */
redbird 0:1bf8f02b0770 136
redbird 0:1bf8f02b0770 137 /*************************** End of file ****************************/