-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlcdialog.h
58 lines (49 loc) · 1.06 KB
/
lcdialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef _LCDLIALOG_H_
#define _LCDLIALOG_H_
/**
@brief The application types and definitions
@author Stephan Ruloff
@date 11.08.2014
*/
#include "font.h"
#include "lcd.h"
typedef struct
{
FontMaster *mSystem;
FontMaster *mText;
FontMaster *mInternal;
} Fonts;
typedef struct
{
char *mBgFilename;
char *mMenuIndex;
uint8_t mBgOffX;
uint8_t mBgOffY;
uint8_t mIsBgLight;
uint8_t mBgLight;
uint8_t mIsInit;
uint8_t mIsClear;
uint8_t mIsNoTag;
uint8_t mFontType;
uint8_t mSingleStep;
uint8_t mStepWidth;
uint32_t mTimeout;
} Config;
#define BUTTON_POS_LEFT 21
#define BUTTON_POS_CENTER 66
#define BUTTON_POS_RIGHT 110
#define EXITCODE_ERROR -1
#define EXITCODE_OK 0
#define EXITCODE_CANCEL 1
#define EXITCODE_HELP 2
#define EXITCODE_EXTRA 3
#define EXITCODE_TIMEOUT 4
#define ASCII_CAN 0x18
extern Config gConfig;
extern uint8_t gEnde;
void SignalHandler(int sig);
void CatchCtrlC(void);
void ButtonInit(void);
int ButtonGet(void);
int ButtonGetCursor(LcdSpi *lcd, ScreenData *screen, CursorData cur);
#endif