this repository aim to make the official ST DISCO F746NG demo from STM32Cube_FW_F7_V1.2.0 working on mbed.
Dependencies: BSP_DISCO_F746NG_patch mbed-rtos mbed
patch/inc/GRAPH.h@0:c00e6c923941, 2015-11-02 (annotated)
- Committer:
- NirT
- Date:
- Mon Nov 02 23:38:08 2015 +0000
- Revision:
- 0:c00e6c923941
Error: Incomplete type is not allowed in "patch/LwIP/src/include/lwip/dhcp.h", Line: 83, Col: 4; ; and more like this.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
NirT | 0:c00e6c923941 | 1 | /********************************************************************* |
NirT | 0:c00e6c923941 | 2 | * SEGGER Microcontroller GmbH & Co. KG * |
NirT | 0:c00e6c923941 | 3 | * Solutions for real time microcontroller applications * |
NirT | 0:c00e6c923941 | 4 | ********************************************************************** |
NirT | 0:c00e6c923941 | 5 | * * |
NirT | 0:c00e6c923941 | 6 | * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG * |
NirT | 0:c00e6c923941 | 7 | * * |
NirT | 0:c00e6c923941 | 8 | * Internet: www.segger.com Support: support@segger.com * |
NirT | 0:c00e6c923941 | 9 | * * |
NirT | 0:c00e6c923941 | 10 | ********************************************************************** |
NirT | 0:c00e6c923941 | 11 | |
NirT | 0:c00e6c923941 | 12 | ** emWin V5.28 - Graphical user interface for embedded applications ** |
NirT | 0:c00e6c923941 | 13 | All Intellectual Property rights in the Software belongs to SEGGER. |
NirT | 0:c00e6c923941 | 14 | emWin is protected by international copyright laws. Knowledge of the |
NirT | 0:c00e6c923941 | 15 | source code may not be used to write a similar product. This file may |
NirT | 0:c00e6c923941 | 16 | only be used in accordance with the following terms: |
NirT | 0:c00e6c923941 | 17 | |
NirT | 0:c00e6c923941 | 18 | The software has been licensed to STMicroelectronics International |
NirT | 0:c00e6c923941 | 19 | N.V. a Dutch company with a Swiss branch and its headquarters in Plan- |
NirT | 0:c00e6c923941 | 20 | les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the |
NirT | 0:c00e6c923941 | 21 | purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_ |
NirT | 0:c00e6c923941 | 22 | troller products commercialized by Licensee only, sublicensed and dis_ |
NirT | 0:c00e6c923941 | 23 | tributed under the terms and conditions of the End User License Agree_ |
NirT | 0:c00e6c923941 | 24 | ment supplied by STMicroelectronics International N.V. |
NirT | 0:c00e6c923941 | 25 | Full source code is available at: www.segger.com |
NirT | 0:c00e6c923941 | 26 | |
NirT | 0:c00e6c923941 | 27 | We appreciate your understanding and fairness. |
NirT | 0:c00e6c923941 | 28 | ---------------------------------------------------------------------- |
NirT | 0:c00e6c923941 | 29 | File : GRAPH.h |
NirT | 0:c00e6c923941 | 30 | Purpose : GRAPH include |
NirT | 0:c00e6c923941 | 31 | --------------------END-OF-HEADER------------------------------------- |
NirT | 0:c00e6c923941 | 32 | */ |
NirT | 0:c00e6c923941 | 33 | |
NirT | 0:c00e6c923941 | 34 | #ifndef GRAPH_H |
NirT | 0:c00e6c923941 | 35 | #define GRAPH_H |
NirT | 0:c00e6c923941 | 36 | |
NirT | 0:c00e6c923941 | 37 | #include "WM.h" |
NirT | 0:c00e6c923941 | 38 | #include "DIALOG_Intern.h" /* Req. for Create indirect data structure */ |
NirT | 0:c00e6c923941 | 39 | #include "WIDGET.h" |
NirT | 0:c00e6c923941 | 40 | |
NirT | 0:c00e6c923941 | 41 | #if GUI_WINSUPPORT |
NirT | 0:c00e6c923941 | 42 | |
NirT | 0:c00e6c923941 | 43 | #if defined(__cplusplus) |
NirT | 0:c00e6c923941 | 44 | extern "C" { /* Make sure we have C-declarations in C++ programs */ |
NirT | 0:c00e6c923941 | 45 | #endif |
NirT | 0:c00e6c923941 | 46 | |
NirT | 0:c00e6c923941 | 47 | /********************************************************************* |
NirT | 0:c00e6c923941 | 48 | * |
NirT | 0:c00e6c923941 | 49 | * Defines |
NirT | 0:c00e6c923941 | 50 | * |
NirT | 0:c00e6c923941 | 51 | ********************************************************************** |
NirT | 0:c00e6c923941 | 52 | */ |
NirT | 0:c00e6c923941 | 53 | #define GRAPH_CI_BK 0 |
NirT | 0:c00e6c923941 | 54 | #define GRAPH_CI_BORDER 1 |
NirT | 0:c00e6c923941 | 55 | #define GRAPH_CI_FRAME 2 |
NirT | 0:c00e6c923941 | 56 | #define GRAPH_CI_GRID 3 |
NirT | 0:c00e6c923941 | 57 | |
NirT | 0:c00e6c923941 | 58 | #define GRAPH_SCALE_CF_HORIZONTAL (0 << 0) |
NirT | 0:c00e6c923941 | 59 | #define GRAPH_SCALE_CF_VERTICAL (1 << 0) |
NirT | 0:c00e6c923941 | 60 | |
NirT | 0:c00e6c923941 | 61 | #define GRAPH_SCALE_SF_HORIZONTAL GRAPH_SCALE_CF_HORIZONTAL |
NirT | 0:c00e6c923941 | 62 | #define GRAPH_SCALE_SF_VERTICAL GRAPH_SCALE_CF_VERTICAL |
NirT | 0:c00e6c923941 | 63 | |
NirT | 0:c00e6c923941 | 64 | #define GRAPH_DRAW_FIRST 0 |
NirT | 0:c00e6c923941 | 65 | #define GRAPH_DRAW_AFTER_BORDER 1 |
NirT | 0:c00e6c923941 | 66 | #define GRAPH_DRAW_LAST 2 |
NirT | 0:c00e6c923941 | 67 | |
NirT | 0:c00e6c923941 | 68 | #define GRAPH_ALIGN_RIGHT (0 << 0) |
NirT | 0:c00e6c923941 | 69 | #define GRAPH_ALIGN_LEFT (1 << 0) |
NirT | 0:c00e6c923941 | 70 | |
NirT | 0:c00e6c923941 | 71 | // |
NirT | 0:c00e6c923941 | 72 | // Creation flags (ExFlags) |
NirT | 0:c00e6c923941 | 73 | // |
NirT | 0:c00e6c923941 | 74 | #define GRAPH_CF_GRID_FIXED_X (1 << 0) |
NirT | 0:c00e6c923941 | 75 | #define GRAPH_CF_AVOID_SCROLLBAR_H (1 << 1) |
NirT | 0:c00e6c923941 | 76 | #define GRAPH_CF_AVOID_SCROLLBAR_V (1 << 2) |
NirT | 0:c00e6c923941 | 77 | |
NirT | 0:c00e6c923941 | 78 | // |
NirT | 0:c00e6c923941 | 79 | // Status flags |
NirT | 0:c00e6c923941 | 80 | // |
NirT | 0:c00e6c923941 | 81 | #define GRAPH_SF_AVOID_SCROLLBAR_H GRAPH_CF_AVOID_SCROLLBAR_H |
NirT | 0:c00e6c923941 | 82 | #define GRAPH_SF_AVOID_SCROLLBAR_V GRAPH_CF_AVOID_SCROLLBAR_V |
NirT | 0:c00e6c923941 | 83 | |
NirT | 0:c00e6c923941 | 84 | /********************************************************************* |
NirT | 0:c00e6c923941 | 85 | * |
NirT | 0:c00e6c923941 | 86 | * Public Types |
NirT | 0:c00e6c923941 | 87 | * |
NirT | 0:c00e6c923941 | 88 | ********************************************************************** |
NirT | 0:c00e6c923941 | 89 | */ |
NirT | 0:c00e6c923941 | 90 | typedef WM_HMEM GRAPH_Handle; |
NirT | 0:c00e6c923941 | 91 | typedef WM_HMEM GRAPH_DATA_Handle; |
NirT | 0:c00e6c923941 | 92 | typedef WM_HMEM GRAPH_SCALE_Handle; |
NirT | 0:c00e6c923941 | 93 | |
NirT | 0:c00e6c923941 | 94 | /********************************************************************* |
NirT | 0:c00e6c923941 | 95 | * |
NirT | 0:c00e6c923941 | 96 | * Create functions |
NirT | 0:c00e6c923941 | 97 | * |
NirT | 0:c00e6c923941 | 98 | ********************************************************************** |
NirT | 0:c00e6c923941 | 99 | */ |
NirT | 0:c00e6c923941 | 100 | |
NirT | 0:c00e6c923941 | 101 | GRAPH_Handle GRAPH_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id); |
NirT | 0:c00e6c923941 | 102 | GRAPH_Handle GRAPH_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int NumExtraBytes); |
NirT | 0:c00e6c923941 | 103 | GRAPH_Handle GRAPH_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb); |
NirT | 0:c00e6c923941 | 104 | |
NirT | 0:c00e6c923941 | 105 | GRAPH_DATA_Handle GRAPH_DATA_XY_Create(GUI_COLOR Color, unsigned MaxNumItems, GUI_POINT * pData, unsigned NumItems); |
NirT | 0:c00e6c923941 | 106 | GRAPH_DATA_Handle GRAPH_DATA_YT_Create(GUI_COLOR Color, unsigned MaxNumItems, I16 * pData, unsigned NumItems); |
NirT | 0:c00e6c923941 | 107 | GRAPH_SCALE_Handle GRAPH_SCALE_Create (int Pos, int TextAlign, unsigned Flags, unsigned TickDist); |
NirT | 0:c00e6c923941 | 108 | |
NirT | 0:c00e6c923941 | 109 | /********************************************************************* |
NirT | 0:c00e6c923941 | 110 | * |
NirT | 0:c00e6c923941 | 111 | * The callback ... |
NirT | 0:c00e6c923941 | 112 | * |
NirT | 0:c00e6c923941 | 113 | * Do not call it directly ! It is only to be used from within an |
NirT | 0:c00e6c923941 | 114 | * overwritten callback. |
NirT | 0:c00e6c923941 | 115 | */ |
NirT | 0:c00e6c923941 | 116 | void GRAPH_Callback(WM_MESSAGE * pMsg); |
NirT | 0:c00e6c923941 | 117 | |
NirT | 0:c00e6c923941 | 118 | /********************************************************************* |
NirT | 0:c00e6c923941 | 119 | * |
NirT | 0:c00e6c923941 | 120 | * Standard member functions |
NirT | 0:c00e6c923941 | 121 | * |
NirT | 0:c00e6c923941 | 122 | ********************************************************************** |
NirT | 0:c00e6c923941 | 123 | */ |
NirT | 0:c00e6c923941 | 124 | |
NirT | 0:c00e6c923941 | 125 | /********************************************************************* |
NirT | 0:c00e6c923941 | 126 | * |
NirT | 0:c00e6c923941 | 127 | * Member functions |
NirT | 0:c00e6c923941 | 128 | * |
NirT | 0:c00e6c923941 | 129 | ********************************************************************** |
NirT | 0:c00e6c923941 | 130 | */ |
NirT | 0:c00e6c923941 | 131 | void GRAPH_AttachData (GRAPH_Handle hObj, GRAPH_DATA_Handle hData); |
NirT | 0:c00e6c923941 | 132 | void GRAPH_AttachScale (GRAPH_Handle hObj, GRAPH_SCALE_Handle hScale); |
NirT | 0:c00e6c923941 | 133 | void GRAPH_DetachData (GRAPH_Handle hObj, GRAPH_DATA_Handle hData); |
NirT | 0:c00e6c923941 | 134 | void GRAPH_DetachScale (GRAPH_Handle hObj, GRAPH_SCALE_Handle hScale); |
NirT | 0:c00e6c923941 | 135 | I32 GRAPH_GetScrollValue (GRAPH_Handle hObj, U8 Coord); |
NirT | 0:c00e6c923941 | 136 | int GRAPH_GetUserData (GRAPH_Handle hObj, void * pDest, int NumBytes); |
NirT | 0:c00e6c923941 | 137 | void GRAPH_SetAutoScrollbar (GRAPH_Handle hObj, U8 Coord, U8 OnOff); |
NirT | 0:c00e6c923941 | 138 | void GRAPH_SetBorder (GRAPH_Handle hObj, unsigned BorderL, unsigned BorderT, unsigned BorderR, unsigned BorderB); |
NirT | 0:c00e6c923941 | 139 | GUI_COLOR GRAPH_SetColor (GRAPH_Handle hObj, GUI_COLOR Color, unsigned Index); |
NirT | 0:c00e6c923941 | 140 | unsigned GRAPH_SetGridFixedX (GRAPH_Handle hObj, unsigned OnOff); |
NirT | 0:c00e6c923941 | 141 | unsigned GRAPH_SetGridOffY (GRAPH_Handle hObj, unsigned Value); |
NirT | 0:c00e6c923941 | 142 | unsigned GRAPH_SetGridVis (GRAPH_Handle hObj, unsigned OnOff); |
NirT | 0:c00e6c923941 | 143 | unsigned GRAPH_SetGridDistX (GRAPH_Handle hObj, unsigned Value); |
NirT | 0:c00e6c923941 | 144 | unsigned GRAPH_SetGridDistY (GRAPH_Handle hObj, unsigned Value); |
NirT | 0:c00e6c923941 | 145 | U8 GRAPH_SetLineStyleH (GRAPH_Handle hObj, U8 Value); |
NirT | 0:c00e6c923941 | 146 | U8 GRAPH_SetLineStyleV (GRAPH_Handle hObj, U8 Value); |
NirT | 0:c00e6c923941 | 147 | void GRAPH_SetLineStyle (GRAPH_Handle hObj, U8 Value); |
NirT | 0:c00e6c923941 | 148 | void GRAPH_SetScrollValue (GRAPH_Handle hObj, U8 Coord, U32 Value); |
NirT | 0:c00e6c923941 | 149 | unsigned GRAPH_SetVSizeX (GRAPH_Handle hObj, unsigned Value); |
NirT | 0:c00e6c923941 | 150 | unsigned GRAPH_SetVSizeY (GRAPH_Handle hObj, unsigned Value); |
NirT | 0:c00e6c923941 | 151 | int GRAPH_SetUserData (GRAPH_Handle hObj, const void * pSrc, int NumBytes); |
NirT | 0:c00e6c923941 | 152 | void GRAPH_SetUserDraw (GRAPH_Handle hObj, void (* pOwnerDraw)(WM_HWIN, int)); |
NirT | 0:c00e6c923941 | 153 | |
NirT | 0:c00e6c923941 | 154 | void GRAPH_DATA_YT_AddValue (GRAPH_DATA_Handle hDataObj, I16 Value); |
NirT | 0:c00e6c923941 | 155 | void GRAPH_DATA_YT_Clear (GRAPH_DATA_Handle hDataObj); |
NirT | 0:c00e6c923941 | 156 | void GRAPH_DATA_YT_Delete (GRAPH_DATA_Handle hDataObj); |
NirT | 0:c00e6c923941 | 157 | void GRAPH_DATA_YT_SetAlign (GRAPH_DATA_Handle hDataObj, int Align); |
NirT | 0:c00e6c923941 | 158 | void GRAPH_DATA_YT_SetOffY (GRAPH_DATA_Handle hDataObj, int Off); |
NirT | 0:c00e6c923941 | 159 | void GRAPH_DATA_YT_MirrorX (GRAPH_DATA_Handle hDataObj, int OnOff); |
NirT | 0:c00e6c923941 | 160 | |
NirT | 0:c00e6c923941 | 161 | void GRAPH_DATA_XY_AddPoint (GRAPH_DATA_Handle hDataObj, GUI_POINT * pPoint); |
NirT | 0:c00e6c923941 | 162 | void GRAPH_DATA_XY_Clear (GRAPH_DATA_Handle hDataObj); |
NirT | 0:c00e6c923941 | 163 | void GRAPH_DATA_XY_Delete (GRAPH_DATA_Handle hDataObj); |
NirT | 0:c00e6c923941 | 164 | unsigned GRAPH_DATA_XY_GetLineVis (GRAPH_DATA_Handle hDataObj); |
NirT | 0:c00e6c923941 | 165 | unsigned GRAPH_DATA_XY_GetPointVis (GRAPH_DATA_Handle hDataObj); |
NirT | 0:c00e6c923941 | 166 | void GRAPH_DATA_XY_SetLineStyle (GRAPH_DATA_Handle hDataObj, U8 LineStyle); |
NirT | 0:c00e6c923941 | 167 | unsigned GRAPH_DATA_XY_SetLineVis (GRAPH_DATA_Handle hDataObj, unsigned OnOff); |
NirT | 0:c00e6c923941 | 168 | void GRAPH_DATA_XY_SetOffX (GRAPH_DATA_Handle hDataObj, int Off); |
NirT | 0:c00e6c923941 | 169 | void GRAPH_DATA_XY_SetOffY (GRAPH_DATA_Handle hDataObj, int Off); |
NirT | 0:c00e6c923941 | 170 | void GRAPH_DATA_XY_SetPenSize (GRAPH_DATA_Handle hDataObj, U8 PenSize); |
NirT | 0:c00e6c923941 | 171 | void GRAPH_DATA_XY_SetPointSize (GRAPH_DATA_Handle hDataObj, unsigned PointSize); |
NirT | 0:c00e6c923941 | 172 | unsigned GRAPH_DATA_XY_SetPointVis (GRAPH_DATA_Handle hDataObj, unsigned OnOff); |
NirT | 0:c00e6c923941 | 173 | void GRAPH_DATA_XY_SetOwnerDraw (GRAPH_DATA_Handle hDataObj, WIDGET_DRAW_ITEM_FUNC * pOwnerDraw); |
NirT | 0:c00e6c923941 | 174 | |
NirT | 0:c00e6c923941 | 175 | void GRAPH_SCALE_Delete (GRAPH_SCALE_Handle hScaleObj); |
NirT | 0:c00e6c923941 | 176 | float GRAPH_SCALE_SetFactor (GRAPH_SCALE_Handle hScaleObj, float Factor); |
NirT | 0:c00e6c923941 | 177 | const GUI_FONT * GRAPH_SCALE_SetFont (GRAPH_SCALE_Handle hScaleObj, const GUI_FONT * pFont); |
NirT | 0:c00e6c923941 | 178 | int GRAPH_SCALE_SetNumDecs (GRAPH_SCALE_Handle hScaleObj, int NumDecs); |
NirT | 0:c00e6c923941 | 179 | int GRAPH_SCALE_SetOff (GRAPH_SCALE_Handle hScaleObj, int Off); |
NirT | 0:c00e6c923941 | 180 | int GRAPH_SCALE_SetPos (GRAPH_SCALE_Handle hScaleObj, int Pos); |
NirT | 0:c00e6c923941 | 181 | GUI_COLOR GRAPH_SCALE_SetTextColor(GRAPH_SCALE_Handle hScaleObj, GUI_COLOR Color); |
NirT | 0:c00e6c923941 | 182 | unsigned GRAPH_SCALE_SetTickDist (GRAPH_SCALE_Handle hScaleObj, unsigned Value); |
NirT | 0:c00e6c923941 | 183 | |
NirT | 0:c00e6c923941 | 184 | #if defined(__cplusplus) |
NirT | 0:c00e6c923941 | 185 | } |
NirT | 0:c00e6c923941 | 186 | #endif |
NirT | 0:c00e6c923941 | 187 | |
NirT | 0:c00e6c923941 | 188 | #endif // GUI_WINSUPPORT |
NirT | 0:c00e6c923941 | 189 | #endif // GRAPH_H |
NirT | 0:c00e6c923941 | 190 | |
NirT | 0:c00e6c923941 | 191 | /*************************** End of file ****************************/ |