Changes done in ECG and BT
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of merged_code2_20sept_2017_4th_oct_2017 by
Diff: struct.h
- Revision:
- 19:1650bbc923cc
- Parent:
- 14:f5c62d30c6fc
- Child:
- 22:ffa88619551d
--- a/struct.h Fri Jun 09 09:22:32 2017 +0000 +++ b/struct.h Fri Jun 09 17:12:21 2017 +0000 @@ -4,7 +4,7 @@ #include "bp.h" #include "glc.h" #include "ecg_dec.h" -#include "test_type.h" +//#include "test_type.h" typedef struct __attribute__((__packed__)) @@ -30,6 +30,21 @@ uint16_t cal_dbp_OTtyp; }CalData_info; +typedef enum +{ + ACK = (uint8_t)0x00, + start_of_file, + end_of_file, + data_trfr, + NACK=0xff, +}bt_st; + +typedef enum +{ + BP_Test = (uint8_t )0x00, // removed Semi Colon and replaced with comma + BG_Test , + ECG_Test, +}test_type_info; typedef struct __attribute__((__packed__)) @@ -44,4 +59,31 @@ CalData_info cal_data; }BLEMsg_info; +typedef enum +{ + sos= (uint8_t)0xc0, + eos= (uint8_t)0xc0, +}file_st; + + + +typedef struct __attribute__((__packed__)) +{ + + file_st start_end_of_string; + uint32_t length_file; + bt_st proto; + BLEMsg_info bt_msg; + uint8_t chk_sum; + +}Point; + + +uint8_t bt_send( uint8_t send_tx); +uint8_t bt_receive(uint8_t send_rx); +void send(); +void sendinit(); +void send_data_str1(); +void send_data_str2(); + #endif \ No newline at end of file