Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of SS_SensePOC2P0_11Dec2017_USERPID by
main.h
00001 #ifndef MAIN_H_ 00002 #define MAIN_H_ 00003 00004 #define TIMER_ENABLE_DEBUG_MODE 600000 //added on 22/09/2017 nikita 00005 #define DATETIME_SIZE 6 00006 00007 // sentinel for bluetooth communication protocol for POC2P0 00008 #define SOS_EOS 0xC0u 00009 00010 // message request id from mobile application for POC2P0 00011 #define STRT_BP_TEST_REQ 0x10u 00012 00013 #define STRT_BG_FBS_TEST_REQ 0x20u 00014 #define STRT_BG_PP_TEST_REQ 0x21u 00015 #define STRT_BG_RAN_TEST_REQ 0x22u 00016 00017 #define STRT_ECG_TEST_REQ 0x30u 00018 00019 #define DATA_SYNC_REQ 0x70u 00020 #define HEARTBEAT_REQ 0x71u 00021 #define HOME_SCREEN_REQ 0x72u 00022 #define TEST_SCREEN_REQ 0x73u 00023 00024 00025 #define SD_READ_REQ 0X78u 00026 00027 // message response id from device for POC2P0 00028 #define BP_TEST_IN_PROGRESS_RES 0x16u 00029 #define BP_TEST_SUCCSS_RES 0x1Au 00030 #define BP_LEADOFF_FINGER_IMPROPER_RES 0x1Eu 00031 #define BP_RESULT_IMPROPER_RES 0x1Fu 00032 00033 #define BG_TEST_IN_PROGRESS_RES 0x26u 00034 #define BG_TEST_STRIP_REMOVE_RES 0x27u 00035 #define BG_INSERT_STRIP_RES 0x28u 00036 #define BG_DROP_BLOOD_RES 0x29u 00037 #define BG_TEST_SUCCSS_RES 0x2Au 00038 #define BG_REPLACE_TEST_STRIP_RES 0x2Eu 00039 #define BG_RESULT_IMPROPER_RES 0x2Fu 00040 #define BG_TIMEOUT_RES 0X2Du 00041 00042 #define ECG_TEST_IN_PROGRESS_RES 0x36u 00043 #define ECG_TEST_SUCCSS_RES 0x3Au 00044 #define ECG_LEADOFF_RES 0x3Eu 00045 #define ECG_RESULT_IMPROPER_RES 0x3Fu 00046 00047 #define DATA_SYNC_MSG_ACCEPTED_RES 0x79u 00048 #define HEARTBEAT_SYNC_MSG_ACCEPTED_RES 0x7Au 00049 #define HOME_SCREEN_MSG_ACCEPTED_RES 0x7Bu 00050 #define TEST_SCREEN_MSG_ACCEPTED_RES 0x7Cu 00051 00052 #define MSG_REJECTED_RES 0x7Fu 00053 00054 // touch states currently used in POC1P0 and now used for POC2P0 receive from mobile application 00055 #define TOUCH_STATE_HOME_SCREEN 0x01u 00056 #define TOUCH_STATE_TEST_SCREEN 0x03u 00057 00058 #define TOUCH_STATE_BP_TEST_SCREEN 0x09u 00059 #define TOUCH_STATE_BG_TEST_SCREEN 0x07u 00060 #define TOUCH_STATE_ECG_SCREEN 0x08u 00061 00062 #define TOUCH_STATE_DATA_SYNC_SCREEN 0x02u 00063 00064 /********************************************************************************** 00065 ****************************** Global Function ************************************ 00066 **********************************************************************************/ 00067 00068 00069 void poc2p0_send_device_msg_res(uint8_t); 00070 void poc2p0_send_device_heartbeat_msg_res(uint8_t); 00071 void poc2p0_send_device_test_result_res(uint8_t, uint32_t); 00072 00073 bool get_filecreated_status(void); //get status of file created 00074 void set_filecreated_status(void); //set file created 00075 void clear_filecreated_status(void); //clear file created 00076 void increment_filepid (void); 00077 void increment_btpid (void); 00078 uint32_t get_btpid(void); 00079 void store_btpid(uint32_t bt_pid); 00080 uint32_t get_filepid(void); 00081 void store_filepid(uint32_t pid); 00082 bool read_debug_status(); 00083 uint32_t get_timer_debug(); 00084 00085 uint8_t get_did(void); //get device ID 00086 00087 00088 #endif 00089
Generated on Mon Jul 18 2022 19:19:02 by
1.7.2
