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/KNOB.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 : KNOB.h |
NirT | 0:c00e6c923941 | 30 | Purpose : KNOB include |
NirT | 0:c00e6c923941 | 31 | --------------------END-OF-HEADER------------------------------------- |
NirT | 0:c00e6c923941 | 32 | */ |
NirT | 0:c00e6c923941 | 33 | |
NirT | 0:c00e6c923941 | 34 | #ifndef KNOB_H |
NirT | 0:c00e6c923941 | 35 | #define KNOB_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 | #include "GUI_Debug.h" |
NirT | 0:c00e6c923941 | 41 | |
NirT | 0:c00e6c923941 | 42 | #if (GUI_SUPPORT_MEMDEV && GUI_WINSUPPORT) |
NirT | 0:c00e6c923941 | 43 | |
NirT | 0:c00e6c923941 | 44 | #if defined(__cplusplus) |
NirT | 0:c00e6c923941 | 45 | extern "C" { // Make sure we have C-declarations in C++ programs |
NirT | 0:c00e6c923941 | 46 | #endif |
NirT | 0:c00e6c923941 | 47 | |
NirT | 0:c00e6c923941 | 48 | /********************************************************************* |
NirT | 0:c00e6c923941 | 49 | * |
NirT | 0:c00e6c923941 | 50 | * Public Types |
NirT | 0:c00e6c923941 | 51 | * |
NirT | 0:c00e6c923941 | 52 | ********************************************************************** |
NirT | 0:c00e6c923941 | 53 | */ |
NirT | 0:c00e6c923941 | 54 | typedef WM_HMEM KNOB_Handle; |
NirT | 0:c00e6c923941 | 55 | |
NirT | 0:c00e6c923941 | 56 | /********************************************************************* |
NirT | 0:c00e6c923941 | 57 | * |
NirT | 0:c00e6c923941 | 58 | * Create functions |
NirT | 0:c00e6c923941 | 59 | * |
NirT | 0:c00e6c923941 | 60 | ********************************************************************** |
NirT | 0:c00e6c923941 | 61 | */ |
NirT | 0:c00e6c923941 | 62 | KNOB_Handle KNOB_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int Id); |
NirT | 0:c00e6c923941 | 63 | KNOB_Handle KNOB_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int Id, int NumExtraBytes); |
NirT | 0:c00e6c923941 | 64 | KNOB_Handle KNOB_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb); |
NirT | 0:c00e6c923941 | 65 | |
NirT | 0:c00e6c923941 | 66 | /********************************************************************* |
NirT | 0:c00e6c923941 | 67 | * |
NirT | 0:c00e6c923941 | 68 | * The callback ... |
NirT | 0:c00e6c923941 | 69 | * |
NirT | 0:c00e6c923941 | 70 | * Do not call it directly ! It is only to be used from within an |
NirT | 0:c00e6c923941 | 71 | * overwritten callback. |
NirT | 0:c00e6c923941 | 72 | */ |
NirT | 0:c00e6c923941 | 73 | void KNOB_Callback(WM_MESSAGE * pMsg); |
NirT | 0:c00e6c923941 | 74 | |
NirT | 0:c00e6c923941 | 75 | /********************************************************************* |
NirT | 0:c00e6c923941 | 76 | * |
NirT | 0:c00e6c923941 | 77 | * Member functions |
NirT | 0:c00e6c923941 | 78 | * |
NirT | 0:c00e6c923941 | 79 | ********************************************************************** |
NirT | 0:c00e6c923941 | 80 | */ |
NirT | 0:c00e6c923941 | 81 | void KNOB_AddValue (KNOB_Handle hObj, I32 Value); |
NirT | 0:c00e6c923941 | 82 | int KNOB_GetUserData(KNOB_Handle hObj, void * pDest, int NumBytes); // Gets user defined data |
NirT | 0:c00e6c923941 | 83 | I32 KNOB_GetValue (KNOB_Handle hObj); // Returns the position of the knob in tenth of degree |
NirT | 0:c00e6c923941 | 84 | void KNOB_SetBkColor (KNOB_Handle hObj, GUI_COLOR Color); // Sets the BK color of the widget |
NirT | 0:c00e6c923941 | 85 | void KNOB_SetBkDevice(KNOB_Handle hObj, GUI_MEMDEV_Handle hMemBk); // Sets the background device |
NirT | 0:c00e6c923941 | 86 | void KNOB_SetDevice (KNOB_Handle hObj, GUI_MEMDEV_Handle hMemSrc); // Sets the memory device with the drawn knob |
NirT | 0:c00e6c923941 | 87 | void KNOB_SetKeyValue(KNOB_Handle hObj, I32 KeyValue); // Sets the value the knob will rotate on one key press |
NirT | 0:c00e6c923941 | 88 | void KNOB_SetOffset (KNOB_Handle hObj, I32 Offset); // Sets the offset angle of the knob |
NirT | 0:c00e6c923941 | 89 | void KNOB_SetPeriod (KNOB_Handle hObj, I32 Period); // Sets the period in which the knob stops |
NirT | 0:c00e6c923941 | 90 | void KNOB_SetPos (KNOB_Handle hObj, I32 Pos); // Sets position of the knob in tenth of degree |
NirT | 0:c00e6c923941 | 91 | void KNOB_SetRange (KNOB_Handle hObj, I32 MinRange, I32 MaxRange); // Sets the usable range of the knob widget |
NirT | 0:c00e6c923941 | 92 | void KNOB_SetSnap (KNOB_Handle hObj, I32 Snap); // Sets Snap positions where the knob stops |
NirT | 0:c00e6c923941 | 93 | void KNOB_SetTickSize(KNOB_Handle hObj, I32 TickSize); // Sets the ticksize, in 1/10 of degree |
NirT | 0:c00e6c923941 | 94 | int KNOB_SetUserData(KNOB_Handle hObj, const void * pSrc, int NumBytes); // Sets user defined data |
NirT | 0:c00e6c923941 | 95 | |
NirT | 0:c00e6c923941 | 96 | /********************************************************************* |
NirT | 0:c00e6c923941 | 97 | * |
NirT | 0:c00e6c923941 | 98 | * Global functions |
NirT | 0:c00e6c923941 | 99 | * |
NirT | 0:c00e6c923941 | 100 | ********************************************************************** |
NirT | 0:c00e6c923941 | 101 | */ |
NirT | 0:c00e6c923941 | 102 | |
NirT | 0:c00e6c923941 | 103 | #if defined(__cplusplus) |
NirT | 0:c00e6c923941 | 104 | } |
NirT | 0:c00e6c923941 | 105 | #endif |
NirT | 0:c00e6c923941 | 106 | |
NirT | 0:c00e6c923941 | 107 | #endif // (GUI_SUPPORT_MEMDEV && GUI_WINSUPPORT) |
NirT | 0:c00e6c923941 | 108 | #endif // KNOB_H |
NirT | 0:c00e6c923941 | 109 | |
NirT | 0:c00e6c923941 | 110 | /*************************** End of file ****************************/ |