Example that shows how to use emWin. This example is based on NXP's POS demo available at lpcware.com
Dependencies: EALib ewgui mbed
BlueboardPOS.h@2:cbf00ac63f35, 2014-04-14 (annotated)
- Committer:
- embeddedartists
- Date:
- Mon Apr 14 08:40:59 2014 +0000
- Revision:
- 2:cbf00ac63f35
- Parent:
- 0:2052561807c5
Updated to use latest ewgui
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
embeddedartists | 0:2052561807c5 | 1 | #include <stdint.h> |
embeddedartists | 0:2052561807c5 | 2 | //#include "emwin/Dialog.h" |
embeddedartists | 0:2052561807c5 | 3 | |
embeddedartists | 0:2052561807c5 | 4 | #define WM_USER_RFID_Load_OK (WM_USER + 0) |
embeddedartists | 0:2052561807c5 | 5 | #define WM_USER_RFID_Store_OK (WM_USER + 1) |
embeddedartists | 0:2052561807c5 | 6 | #define WM_USER_RFID_Credit_Low (WM_USER + 2) |
embeddedartists | 0:2052561807c5 | 7 | #define WM_USER_RFID_Error (WM_USER + 3) |
embeddedartists | 0:2052561807c5 | 8 | #define WM_USER_RFID_Reset_OK (WM_USER + 4) |
embeddedartists | 0:2052561807c5 | 9 | #define WM_USER_RFID_Increment_OK (WM_USER + 5) |
embeddedartists | 0:2052561807c5 | 10 | #define WM_USER_RFID_Swipe (WM_USER + 6) |
embeddedartists | 0:2052561807c5 | 11 | #define WM_USER_RFID_INIT_ERR (WM_USER + 7) |
embeddedartists | 0:2052561807c5 | 12 | |
embeddedartists | 0:2052561807c5 | 13 | |
embeddedartists | 0:2052561807c5 | 14 | void ShowWindow(WM_HWIN window); |
embeddedartists | 0:2052561807c5 | 15 | void ShowLastWindow(void); |
embeddedartists | 0:2052561807c5 | 16 | WM_HWIN CreateOrderEntry(void); |
embeddedartists | 0:2052561807c5 | 17 | WM_HWIN CreateSwipeCard(void); |
embeddedartists | 0:2052561807c5 | 18 | int DrawCustomSkin(const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo); |
embeddedartists | 0:2052561807c5 | 19 | |
embeddedartists | 0:2052561807c5 | 20 | extern WM_HWIN hWinOrderEntry; |
embeddedartists | 0:2052561807c5 | 21 | extern WM_HWIN hWinSwipeCard; |
embeddedartists | 0:2052561807c5 | 22 | extern WM_HWIN hWinCallBack; |
embeddedartists | 0:2052561807c5 | 23 | |
embeddedartists | 0:2052561807c5 | 24 | extern uint32_t Credit; |
embeddedartists | 0:2052561807c5 | 25 | extern uint8_t RFID_Cancelled; |