nikita teggi / Mbed 2 deprecated merged_code2_3rd_nov_2017

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of merged_code2_20sept_2017_4th_oct_2017 by nikita teggi

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers touch_modules.h Source File

touch_modules.h

00001 
00002 #ifndef TOUCH_MODULES_H_
00003 #define TOUCH_MODULES_H_
00004 
00005 #define TOTAL1 65535
00006 #define X_MAX 240
00007 #define Y_MAX 320
00008 // touch co-ordinates//
00009 #define SYSCFG_HOME_X_MIN 106            //SYSCFG_MAIN CHANGED TO SYSCFG_HOME 21/07/17
00010 #define SYSCFG_HOME_X_MAX 150
00011 #define SYSCFG_HOME_Y_MIN 90
00012 #define SYSCFG_HOME_Y_MAX 225
00013 
00014 #define TEST_HOME_X_MIN 53              //TEST_MAIN CHANGED TO TEST_HOME 21/07/17
00015 #define TEST_HOME_X_MAX 81
00016 #define TEST_HOME_Y_MIN 90
00017 #define TEST_HOME_Y_MAX 225
00018 
00019 #define BT_MAIN_X_MIN 110               //BLE_MAIN CHANGED TO BT_MAIN 21/07/17
00020 #define BT_MAIN_X_MAX 145
00021 #define BT_MAIN_Y_MIN 50
00022 #define BT_MAIN_Y_MAX 130
00023 
00024 #define PATIENT_INFO_MAIN_X_MIN  110                                            //ERASE_MAIN CHANGED TO DELETE_MAIN 21/07/17
00025 #define PATIENT_INFO_MAIN_X_MAX 145
00026 #define PATIENT_INFO_MAIN_Y_MIN 180
00027 #define PATIENT_INFO_MAIN_Y_MAX 260
00028 
00029 #define HOME_SYS_CONFIG_X_MIN 60                                                     
00030 #define HOME_SYS_CONFIG_X_MAX 90
00031 #define HOME_SYS_CONFIG_Y_MIN 50
00032 #define HOME_SYS_CONFIG_Y_MAX 130
00033 
00034 #define HOME_MAIN_X_MIN 60
00035 #define HOME_MAIN_X_MAX 90
00036 #define HOME_MAIN_Y_MIN 180
00037 #define HOME_MAIN_Y_MAX 260
00038 
00039 #define DEBUG_MAIN_X_MIN 60
00040 #define DEBUG_MAIN_X_MAX 90
00041 #define DEBUG_MAIN_Y_MIN 180
00042 #define DEBUG_MAIN_Y_MAX 260
00043 
00044 #define BG_MAIN_X_MIN 110
00045 #define BG_MAIN_X_MAX 140
00046 #define BG_MAIN_Y_MIN 50
00047 #define BG_MAIN_Y_MAX 130
00048 
00049 #define ECG_MAIN_X_MIN 110
00050 #define ECG_MAIN_X_MAX 145
00051 #define ECG_MAIN_Y_MIN 180
00052 #define ECG_MAIN_Y_MAX 260
00053 
00054 #define BP_MAIN_X_MIN 60
00055 #define BP_MAIN_X_MAX 90
00056 #define BP_MAIN_Y_MIN 50
00057 #define BP_MAIN_Y_MAX 130
00058 
00059 #define START_MAIN_X_MIN 106
00060 #define START_MAIN_X_MAX 150
00061 #define START_MAIN_Y_MIN 90
00062 #define START_MAIN_Y_MAX 225
00063 
00064 #define MAIN_X_MIN 53
00065 #define MAIN_X_MAX 81
00066 #define MAIN_Y_MIN 90
00067 #define MAIN_Y_MAX 225
00068 
00069 #define BG_RET_MAIN_X_MIN 60                //RET_MAIN CHANGED TO BG_RET_MAIN 21/7/17   // MAIN IN BG SCREEN
00070 #define BG_RET_MAIN_X_MAX 90
00071 #define BG_RET_MAIN_Y_MIN 180
00072 #define BG_RET_MAIN_Y_MAX 260
00073 
00074 #define RETEST_HOME_X_MIN 60                //RETEST ICON IN THE RESULT SCREEN
00075 #define RETEST_HOME_X_MAX 90
00076 #define RETEST_HOME_Y_MIN 180
00077 #define RETEST_HOME_Y_MAX 260
00078 
00079 #define FPS_MAIN_X_MIN 110
00080 #define FPS_MAIN_X_MAX 140
00081 #define FPS_MAIN_Y_MIN 50
00082 #define FPS_MAIN_Y_MAX 130
00083 
00084 #define PP_MAIN_X_MIN 110
00085 #define PP_MAIN_X_MAX 145
00086 #define PP_MAIN_Y_MIN 180
00087 #define PP_MAIN_Y_MAX 260
00088 
00089 #define RANDOM_MAIN_X_MIN 60
00090 #define RANDOM_MAIN_X_MAX 90
00091 #define RANDOM_MAIN_Y_MIN 50
00092 #define RANDOM_MAIN_Y_MAX 130
00093 
00094 #define RET_TEST_X_MIN 60                       //MAIN ICON IN RESULT SCREEN
00095 #define RET_TEST_X_MAX 90
00096 #define RET_TEST_Y_MIN 50
00097 #define RET_TEST_Y_MAX 130
00098 
00099 #define YES_MAIN_X_MIN 60
00100 #define YES_MAIN_X_MAX 90
00101 #define YES_MAIN_Y_MIN 50
00102 #define YES_MAIN_Y_MAX 130
00103 
00104 #define NO_MAIN_X_MIN 60
00105 #define NO_MAIN_X_MAX 90
00106 #define NO_MAIN_Y_MIN 180
00107 #define NO_MAIN_Y_MAX 260
00108 
00109 #define SD_DEL_X_MIN 110                                                        //Co-ordinates for SD-DEL
00110 #define SD_DEL_X_MAX 140
00111 #define SD_DEL_Y_MIN 50
00112 #define SD_DEL_Y_MAX 130
00113 
00114 #define SD_READ_X_MIN 110                                                       //Co-ordinates for SD-READ
00115 #define SD_READ_X_MAX 145
00116 #define SD_READ_Y_MIN 180
00117 #define SD_READ_Y_MAX 260
00118 
00119 #define Z_X_MIN 60
00120 #define Z_X_MAX 90
00121 #define Z_Y_MIN 50
00122 #define Z_Y_MAX 130
00123 
00124 #define DEBUG_BACK_X_MIN 60                                                     //Co-ordinates for BACK in DEBUG                
00125 #define DEBUG_BACK_X_MAX 90
00126 #define DEBUG_BACK_Y_MIN 180
00127 #define DEBUG_BACK_Y_MAX 260
00128 
00129 unsigned char touch_main();
00130 unsigned char touch_main_1();
00131 unsigned char touch_main_2();
00132 void touch1() ;
00133 int readTouchY(void);
00134 void detect_touch(unsigned char display_state);
00135 int readTouchX(void);
00136 void EnableTouch(void);
00137 void DisableTouch (void);
00138 unsigned char touch_main();
00139 unsigned char touch_glc();
00140 unsigned char touch_ecg();
00141 unsigned char touch_bp();
00142 unsigned char touch_ret();
00143 unsigned char touch_again_ecg();
00144 unsigned char touch_again_glc(); 
00145 unsigned char touch_again_bp(); 
00146 void screen_bp2();
00147 unsigned char BT_return();   // //determining the touch for bp main screen
00148 void touch_func_with_timer(uint32_t time_ms);
00149 void touch_func_without_timer();
00150 uint32_t get_timer();
00151 void no_touch();
00152 unsigned char touch_debug(); 
00153 
00154 #endif