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/SPINBOX_Private.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 : SPINBOX_Private.h |
NirT | 0:c00e6c923941 | 30 | Purpose : Private SPINBOX include |
NirT | 0:c00e6c923941 | 31 | --------------------END-OF-HEADER------------------------------------- |
NirT | 0:c00e6c923941 | 32 | */ |
NirT | 0:c00e6c923941 | 33 | |
NirT | 0:c00e6c923941 | 34 | #ifndef SPINBOX_PRIVATE_H |
NirT | 0:c00e6c923941 | 35 | #define SPINBOX_PRIVATE_H |
NirT | 0:c00e6c923941 | 36 | |
NirT | 0:c00e6c923941 | 37 | #include "SPINBOX.h" |
NirT | 0:c00e6c923941 | 38 | #include "EDIT.h" |
NirT | 0:c00e6c923941 | 39 | #include "GUI_Private.h" |
NirT | 0:c00e6c923941 | 40 | |
NirT | 0:c00e6c923941 | 41 | #if GUI_WINSUPPORT |
NirT | 0:c00e6c923941 | 42 | |
NirT | 0:c00e6c923941 | 43 | /********************************************************************* |
NirT | 0:c00e6c923941 | 44 | * |
NirT | 0:c00e6c923941 | 45 | * Private config defaults |
NirT | 0:c00e6c923941 | 46 | * |
NirT | 0:c00e6c923941 | 47 | ********************************************************************** |
NirT | 0:c00e6c923941 | 48 | */ |
NirT | 0:c00e6c923941 | 49 | |
NirT | 0:c00e6c923941 | 50 | /********************************************************************* |
NirT | 0:c00e6c923941 | 51 | * |
NirT | 0:c00e6c923941 | 52 | * Object definition |
NirT | 0:c00e6c923941 | 53 | * |
NirT | 0:c00e6c923941 | 54 | ********************************************************************** |
NirT | 0:c00e6c923941 | 55 | */ |
NirT | 0:c00e6c923941 | 56 | typedef struct { |
NirT | 0:c00e6c923941 | 57 | WIDGET_DRAW_ITEM_FUNC * pfDrawSkin; |
NirT | 0:c00e6c923941 | 58 | } SPINBOX_SKIN_PRIVATE; |
NirT | 0:c00e6c923941 | 59 | |
NirT | 0:c00e6c923941 | 60 | typedef struct { |
NirT | 0:c00e6c923941 | 61 | GUI_COLOR aButtonBkColor[3]; // Button background color for the states (disabled, pressed, unpressed). |
NirT | 0:c00e6c923941 | 62 | GUI_COLOR aButtonUpperColor[3]; // Upper color for the button states (disabled, pressed, unpressed). |
NirT | 0:c00e6c923941 | 63 | GUI_COLOR aButtonLowerColor[3]; // Lower color for the button states (disabled, pressed, unpressed). |
NirT | 0:c00e6c923941 | 64 | GUI_COLOR aButtonOuterColor[3]; // Outer color for the button states (disabled, pressed, unpressed). |
NirT | 0:c00e6c923941 | 65 | GUI_COLOR aTriangleColor[3]; // Color of the triangle for the button states (disabled, pressed, unpressed). |
NirT | 0:c00e6c923941 | 66 | GUI_COLOR aBkColor[2]; // Background color for the states (enabled, disabled). |
NirT | 0:c00e6c923941 | 67 | GUI_COLOR aTextColor[2]; // Text color for the states (enabled, disabled). |
NirT | 0:c00e6c923941 | 68 | I32 Min; // Minimum allowed value. |
NirT | 0:c00e6c923941 | 69 | I32 Max; // Maximum allowed value. |
NirT | 0:c00e6c923941 | 70 | U16 Step; // Value will be increased/decreased by this amount when a button is clicked. |
NirT | 0:c00e6c923941 | 71 | U16 ButtonSize; // Size of the button depending on the orientation. |
NirT | 0:c00e6c923941 | 72 | U8 Edge; // Buttons reside on the left or right edge of the widget. |
NirT | 0:c00e6c923941 | 73 | SPINBOX_SKIN_PRIVATE SkinPrivate; // Structure containing a pointer to the used DrawSkin-function. |
NirT | 0:c00e6c923941 | 74 | } SPINBOX_PROPS; |
NirT | 0:c00e6c923941 | 75 | |
NirT | 0:c00e6c923941 | 76 | typedef struct { |
NirT | 0:c00e6c923941 | 77 | WIDGET Widget; |
NirT | 0:c00e6c923941 | 78 | SPINBOX_PROPS Props; |
NirT | 0:c00e6c923941 | 79 | const WIDGET_SKIN * pWidgetSkin; |
NirT | 0:c00e6c923941 | 80 | EDIT_Handle hEdit; |
NirT | 0:c00e6c923941 | 81 | GUI_TIMER_HANDLE hTimer; |
NirT | 0:c00e6c923941 | 82 | I8 TimerButton; |
NirT | 0:c00e6c923941 | 83 | I8 LastButton; |
NirT | 0:c00e6c923941 | 84 | I8 NoAction; |
NirT | 0:c00e6c923941 | 85 | U8 State; // Pressed state |
NirT | 0:c00e6c923941 | 86 | } SPINBOX_OBJ; |
NirT | 0:c00e6c923941 | 87 | |
NirT | 0:c00e6c923941 | 88 | /********************************************************************* |
NirT | 0:c00e6c923941 | 89 | * |
NirT | 0:c00e6c923941 | 90 | * Macros for internal use |
NirT | 0:c00e6c923941 | 91 | * |
NirT | 0:c00e6c923941 | 92 | ********************************************************************** |
NirT | 0:c00e6c923941 | 93 | */ |
NirT | 0:c00e6c923941 | 94 | #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL |
NirT | 0:c00e6c923941 | 95 | #define SPINBOX_INIT_ID(p) (p->Widget.DebugId = SPINBOX_ID) |
NirT | 0:c00e6c923941 | 96 | #else |
NirT | 0:c00e6c923941 | 97 | #define SPINBOX_INIT_ID(p) |
NirT | 0:c00e6c923941 | 98 | #endif |
NirT | 0:c00e6c923941 | 99 | |
NirT | 0:c00e6c923941 | 100 | #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL |
NirT | 0:c00e6c923941 | 101 | SPINBOX_OBJ * SPINBOX_LockH(SPINBOX_Handle h); |
NirT | 0:c00e6c923941 | 102 | #define SPINBOX_LOCK_H(h) SPINBOX_LockH(h) |
NirT | 0:c00e6c923941 | 103 | #else |
NirT | 0:c00e6c923941 | 104 | #define SPINBOX_LOCK_H(h) (SPINBOX_OBJ *)GUI_LOCK_H(h) |
NirT | 0:c00e6c923941 | 105 | #endif |
NirT | 0:c00e6c923941 | 106 | |
NirT | 0:c00e6c923941 | 107 | #define SPINBOX_BUTTON_NONE -1 |
NirT | 0:c00e6c923941 | 108 | #define SPINBOX_BUTTON_0 0 |
NirT | 0:c00e6c923941 | 109 | #define SPINBOX_BUTTON_1 1 |
NirT | 0:c00e6c923941 | 110 | |
NirT | 0:c00e6c923941 | 111 | #define SPINBOX_TIMER_ID 1234 |
NirT | 0:c00e6c923941 | 112 | |
NirT | 0:c00e6c923941 | 113 | /********************************************************************* |
NirT | 0:c00e6c923941 | 114 | * |
NirT | 0:c00e6c923941 | 115 | * Private function prototypes |
NirT | 0:c00e6c923941 | 116 | * |
NirT | 0:c00e6c923941 | 117 | ********************************************************************** |
NirT | 0:c00e6c923941 | 118 | */ |
NirT | 0:c00e6c923941 | 119 | void SPINBOX__ApplyProps (SPINBOX_Handle hObj, SPINBOX_SKINFLEX_PROPS * const * ppProps); |
NirT | 0:c00e6c923941 | 120 | void SPINBOX__DrawBk (SPINBOX_Handle hObj, GUI_COLOR Color); |
NirT | 0:c00e6c923941 | 121 | void SPINBOX__GetButtonRect (SPINBOX_Handle hObj, GUI_RECT * pButtonRect, U8 ButtonIndex); |
NirT | 0:c00e6c923941 | 122 | void SPINBOX__GetButtonRectEx(SPINBOX_Handle hObj, WIDGET_ITEM_DRAW_INFO * ItemInfo); |
NirT | 0:c00e6c923941 | 123 | int SPINBOX__GetDefaultMax (void); |
NirT | 0:c00e6c923941 | 124 | int SPINBOX__GetDefaultMin (void); |
NirT | 0:c00e6c923941 | 125 | |
NirT | 0:c00e6c923941 | 126 | /********************************************************************* |
NirT | 0:c00e6c923941 | 127 | * |
NirT | 0:c00e6c923941 | 128 | * Module internal data |
NirT | 0:c00e6c923941 | 129 | * |
NirT | 0:c00e6c923941 | 130 | ********************************************************************** |
NirT | 0:c00e6c923941 | 131 | */ |
NirT | 0:c00e6c923941 | 132 | /********************************************************************* |
NirT | 0:c00e6c923941 | 133 | * |
NirT | 0:c00e6c923941 | 134 | * Public data (internal defaults) |
NirT | 0:c00e6c923941 | 135 | * |
NirT | 0:c00e6c923941 | 136 | ********************************************************************** |
NirT | 0:c00e6c923941 | 137 | */ |
NirT | 0:c00e6c923941 | 138 | extern SPINBOX_PROPS SPINBOX__DefaultProps; |
NirT | 0:c00e6c923941 | 139 | extern const WIDGET_SKIN SPINBOX__SkinClassic; |
NirT | 0:c00e6c923941 | 140 | extern WIDGET_SKIN SPINBOX__Skin; |
NirT | 0:c00e6c923941 | 141 | extern const WIDGET_SKIN * SPINBOX__pSkinDefault; |
NirT | 0:c00e6c923941 | 142 | |
NirT | 0:c00e6c923941 | 143 | #endif // GUI_WINSUPPORT |
NirT | 0:c00e6c923941 | 144 | #endif // SPINBOX_PRIVATE_H |
NirT | 0:c00e6c923941 | 145 | |
NirT | 0:c00e6c923941 | 146 | /*************************** End of file ****************************/ |