Changes done in ECG and BT

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of merged_code2_20sept_2017_4th_oct_2017 by nikita teggi

Committer:
nikitateggi
Date:
Fri Nov 03 07:16:44 2017 +0000
Revision:
56:89eb9a977641
Parent:
53:cc6e65480a67
Changes done in ECG and BT

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nikitateggi 33:a80eed071fdc 1
nikitateggi 0:c47fb0c1bbf6 2 #ifndef TOUCH_MODULES_H_
nikitateggi 0:c47fb0c1bbf6 3 #define TOUCH_MODULES_H_
nikitateggi 0:c47fb0c1bbf6 4
nikitateggi 0:c47fb0c1bbf6 5 #define TOTAL1 65535
nikitateggi 0:c47fb0c1bbf6 6 #define X_MAX 240
nikitateggi 0:c47fb0c1bbf6 7 #define Y_MAX 320
nikitateggi 30:f2f48ed43aae 8 // touch co-ordinates//
avp2417 35:43133f017ed4 9 #define SYSCFG_HOME_X_MIN 106 //SYSCFG_MAIN CHANGED TO SYSCFG_HOME 21/07/17
avp2417 35:43133f017ed4 10 #define SYSCFG_HOME_X_MAX 150
avp2417 35:43133f017ed4 11 #define SYSCFG_HOME_Y_MIN 90
avp2417 35:43133f017ed4 12 #define SYSCFG_HOME_Y_MAX 225
nikitateggi 29:7edc76b15e3d 13
avp2417 35:43133f017ed4 14 #define TEST_HOME_X_MIN 53 //TEST_MAIN CHANGED TO TEST_HOME 21/07/17
avp2417 35:43133f017ed4 15 #define TEST_HOME_X_MAX 81
avp2417 35:43133f017ed4 16 #define TEST_HOME_Y_MIN 90
avp2417 35:43133f017ed4 17 #define TEST_HOME_Y_MAX 225
nikitateggi 29:7edc76b15e3d 18
avp2417 35:43133f017ed4 19 #define BT_MAIN_X_MIN 110 //BLE_MAIN CHANGED TO BT_MAIN 21/07/17
avp2417 35:43133f017ed4 20 #define BT_MAIN_X_MAX 145
avp2417 35:43133f017ed4 21 #define BT_MAIN_Y_MIN 50
avp2417 35:43133f017ed4 22 #define BT_MAIN_Y_MAX 130
nikitateggi 29:7edc76b15e3d 23
nikitateggi 53:cc6e65480a67 24 #define PATIENT_INFO_MAIN_X_MIN 110 //ERASE_MAIN CHANGED TO DELETE_MAIN 21/07/17
nikitateggi 53:cc6e65480a67 25 #define PATIENT_INFO_MAIN_X_MAX 145
nikitateggi 53:cc6e65480a67 26 #define PATIENT_INFO_MAIN_Y_MIN 180
nikitateggi 53:cc6e65480a67 27 #define PATIENT_INFO_MAIN_Y_MAX 260
nikitateggi 29:7edc76b15e3d 28
nikitateggi 53:cc6e65480a67 29 #define HOME_SYS_CONFIG_X_MIN 60
nikitateggi 53:cc6e65480a67 30 #define HOME_SYS_CONFIG_X_MAX 90
nikitateggi 53:cc6e65480a67 31 #define HOME_SYS_CONFIG_Y_MIN 50
nikitateggi 53:cc6e65480a67 32 #define HOME_SYS_CONFIG_Y_MAX 130
nikitateggi 29:7edc76b15e3d 33
nikitateggi 29:7edc76b15e3d 34 #define HOME_MAIN_X_MIN 60
avp2417 35:43133f017ed4 35 #define HOME_MAIN_X_MAX 90
avp2417 35:43133f017ed4 36 #define HOME_MAIN_Y_MIN 180
avp2417 35:43133f017ed4 37 #define HOME_MAIN_Y_MAX 260
nikitateggi 29:7edc76b15e3d 38
nikitateggi 53:cc6e65480a67 39 #define DEBUG_MAIN_X_MIN 60
nikitateggi 53:cc6e65480a67 40 #define DEBUG_MAIN_X_MAX 90
nikitateggi 53:cc6e65480a67 41 #define DEBUG_MAIN_Y_MIN 180
nikitateggi 53:cc6e65480a67 42 #define DEBUG_MAIN_Y_MAX 260
nikitateggi 53:cc6e65480a67 43
nikitateggi 29:7edc76b15e3d 44 #define BG_MAIN_X_MIN 110
avp2417 35:43133f017ed4 45 #define BG_MAIN_X_MAX 140
avp2417 35:43133f017ed4 46 #define BG_MAIN_Y_MIN 50
avp2417 35:43133f017ed4 47 #define BG_MAIN_Y_MAX 130
nikitateggi 29:7edc76b15e3d 48
nikitateggi 29:7edc76b15e3d 49 #define ECG_MAIN_X_MIN 110
avp2417 35:43133f017ed4 50 #define ECG_MAIN_X_MAX 145
nikitateggi 29:7edc76b15e3d 51 #define ECG_MAIN_Y_MIN 180
nikitateggi 29:7edc76b15e3d 52 #define ECG_MAIN_Y_MAX 260
nikitateggi 29:7edc76b15e3d 53
nikitateggi 29:7edc76b15e3d 54 #define BP_MAIN_X_MIN 60
nikitateggi 29:7edc76b15e3d 55 #define BP_MAIN_X_MAX 90
nikitateggi 29:7edc76b15e3d 56 #define BP_MAIN_Y_MIN 50
avp2417 35:43133f017ed4 57 #define BP_MAIN_Y_MAX 130
nikitateggi 29:7edc76b15e3d 58
avp2417 35:43133f017ed4 59 #define START_MAIN_X_MIN 106
nikitateggi 29:7edc76b15e3d 60 #define START_MAIN_X_MAX 150
avp2417 35:43133f017ed4 61 #define START_MAIN_Y_MIN 90
avp2417 35:43133f017ed4 62 #define START_MAIN_Y_MAX 225
nikitateggi 29:7edc76b15e3d 63
avp2417 35:43133f017ed4 64 #define MAIN_X_MIN 53
avp2417 35:43133f017ed4 65 #define MAIN_X_MAX 81
avp2417 35:43133f017ed4 66 #define MAIN_Y_MIN 90
avp2417 35:43133f017ed4 67 #define MAIN_Y_MAX 225
nikitateggi 29:7edc76b15e3d 68
avp2417 35:43133f017ed4 69 #define BG_RET_MAIN_X_MIN 60 //RET_MAIN CHANGED TO BG_RET_MAIN 21/7/17 // MAIN IN BG SCREEN
avp2417 35:43133f017ed4 70 #define BG_RET_MAIN_X_MAX 90
avp2417 35:43133f017ed4 71 #define BG_RET_MAIN_Y_MIN 180
avp2417 35:43133f017ed4 72 #define BG_RET_MAIN_Y_MAX 260
nikitateggi 29:7edc76b15e3d 73
avp2417 35:43133f017ed4 74 #define RETEST_HOME_X_MIN 60 //RETEST ICON IN THE RESULT SCREEN
avp2417 35:43133f017ed4 75 #define RETEST_HOME_X_MAX 90
avp2417 35:43133f017ed4 76 #define RETEST_HOME_Y_MIN 180
avp2417 35:43133f017ed4 77 #define RETEST_HOME_Y_MAX 260
nikitateggi 29:7edc76b15e3d 78
nikitateggi 29:7edc76b15e3d 79 #define FPS_MAIN_X_MIN 110
avp2417 35:43133f017ed4 80 #define FPS_MAIN_X_MAX 140
avp2417 35:43133f017ed4 81 #define FPS_MAIN_Y_MIN 50
avp2417 35:43133f017ed4 82 #define FPS_MAIN_Y_MAX 130
nikitateggi 29:7edc76b15e3d 83
nikitateggi 29:7edc76b15e3d 84 #define PP_MAIN_X_MIN 110
avp2417 35:43133f017ed4 85 #define PP_MAIN_X_MAX 145
nikitateggi 29:7edc76b15e3d 86 #define PP_MAIN_Y_MIN 180
nikitateggi 29:7edc76b15e3d 87 #define PP_MAIN_Y_MAX 260
nikitateggi 29:7edc76b15e3d 88
nikitateggi 29:7edc76b15e3d 89 #define RANDOM_MAIN_X_MIN 60
nikitateggi 29:7edc76b15e3d 90 #define RANDOM_MAIN_X_MAX 90
nikitateggi 29:7edc76b15e3d 91 #define RANDOM_MAIN_Y_MIN 50
avp2417 35:43133f017ed4 92 #define RANDOM_MAIN_Y_MAX 130
nikitateggi 29:7edc76b15e3d 93
avp2417 35:43133f017ed4 94 #define RET_TEST_X_MIN 60 //MAIN ICON IN RESULT SCREEN
nikitateggi 29:7edc76b15e3d 95 #define RET_TEST_X_MAX 90
nikitateggi 29:7edc76b15e3d 96 #define RET_TEST_Y_MIN 50
avp2417 35:43133f017ed4 97 #define RET_TEST_Y_MAX 130
nikitateggi 29:7edc76b15e3d 98
nikitateggi 29:7edc76b15e3d 99 #define YES_MAIN_X_MIN 60
nikitateggi 29:7edc76b15e3d 100 #define YES_MAIN_X_MAX 90
nikitateggi 29:7edc76b15e3d 101 #define YES_MAIN_Y_MIN 50
avp2417 35:43133f017ed4 102 #define YES_MAIN_Y_MAX 130
nikitateggi 29:7edc76b15e3d 103
nikitateggi 29:7edc76b15e3d 104 #define NO_MAIN_X_MIN 60
avp2417 35:43133f017ed4 105 #define NO_MAIN_X_MAX 90
avp2417 35:43133f017ed4 106 #define NO_MAIN_Y_MIN 180
avp2417 35:43133f017ed4 107 #define NO_MAIN_Y_MAX 260
nikitateggi 29:7edc76b15e3d 108
nikitateggi 49:3ff80c4bc1be 109 #define SD_DEL_X_MIN 110 //Co-ordinates for SD-DEL
nikitateggi 49:3ff80c4bc1be 110 #define SD_DEL_X_MAX 140
nikitateggi 49:3ff80c4bc1be 111 #define SD_DEL_Y_MIN 50
nikitateggi 49:3ff80c4bc1be 112 #define SD_DEL_Y_MAX 130
nikitateggi 49:3ff80c4bc1be 113
nikitateggi 49:3ff80c4bc1be 114 #define SD_READ_X_MIN 110 //Co-ordinates for SD-READ
nikitateggi 49:3ff80c4bc1be 115 #define SD_READ_X_MAX 145
nikitateggi 49:3ff80c4bc1be 116 #define SD_READ_Y_MIN 180
nikitateggi 49:3ff80c4bc1be 117 #define SD_READ_Y_MAX 260
nikitateggi 49:3ff80c4bc1be 118
nikitateggi 49:3ff80c4bc1be 119 #define Z_X_MIN 60
nikitateggi 49:3ff80c4bc1be 120 #define Z_X_MAX 90
nikitateggi 49:3ff80c4bc1be 121 #define Z_Y_MIN 50
nikitateggi 49:3ff80c4bc1be 122 #define Z_Y_MAX 130
nikitateggi 49:3ff80c4bc1be 123
nikitateggi 49:3ff80c4bc1be 124 #define DEBUG_BACK_X_MIN 60 //Co-ordinates for BACK in DEBUG
nikitateggi 49:3ff80c4bc1be 125 #define DEBUG_BACK_X_MAX 90
nikitateggi 49:3ff80c4bc1be 126 #define DEBUG_BACK_Y_MIN 180
nikitateggi 49:3ff80c4bc1be 127 #define DEBUG_BACK_Y_MAX 260
nikitateggi 49:3ff80c4bc1be 128
nikitateggi 0:c47fb0c1bbf6 129 unsigned char touch_main();
nikitateggi 1:8316c23ec6b9 130 unsigned char touch_main_1();
nikitateggi 1:8316c23ec6b9 131 unsigned char touch_main_2();
nikitateggi 0:c47fb0c1bbf6 132 void touch1() ;
nikitateggi 0:c47fb0c1bbf6 133 int readTouchY(void);
avp2417 37:92fcbf22bf91 134 void detect_touch(unsigned char display_state);
nikitateggi 0:c47fb0c1bbf6 135 int readTouchX(void);
nikitateggi 0:c47fb0c1bbf6 136 void EnableTouch(void);
nikitateggi 0:c47fb0c1bbf6 137 void DisableTouch (void);
nikitateggi 0:c47fb0c1bbf6 138 unsigned char touch_main();
nikitateggi 0:c47fb0c1bbf6 139 unsigned char touch_glc();
nikitateggi 0:c47fb0c1bbf6 140 unsigned char touch_ecg();
nikitateggi 0:c47fb0c1bbf6 141 unsigned char touch_bp();
nikitateggi 1:8316c23ec6b9 142 unsigned char touch_ret();
nikitateggi 31:0f67acfc6236 143 unsigned char touch_again_ecg();
nikitateggi 31:0f67acfc6236 144 unsigned char touch_again_glc();
nikitateggi 31:0f67acfc6236 145 unsigned char touch_again_bp();
nikitateggi 31:0f67acfc6236 146 void screen_bp2();
nikitateggi 31:0f67acfc6236 147 unsigned char BT_return(); // //determining the touch for bp main screen
avp2417 37:92fcbf22bf91 148 void touch_func_with_timer(uint32_t time_ms);
avp2417 37:92fcbf22bf91 149 void touch_func_without_timer();
avp2417 37:92fcbf22bf91 150 uint32_t get_timer();
avp2417 37:92fcbf22bf91 151 void no_touch();
nikitateggi 49:3ff80c4bc1be 152 unsigned char touch_debug();
nikitateggi 31:0f67acfc6236 153
nikitateggi 0:c47fb0c1bbf6 154 #endif