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

Revision:
22:ffa88619551d
Parent:
19:1650bbc923cc
Child:
31:0f67acfc6236
--- a/struct.h	Wed Jun 21 08:39:10 2017 +0000
+++ b/struct.h	Fri Jun 23 07:25:24 2017 +0000
@@ -30,14 +30,14 @@
     uint16_t             cal_dbp_OTtyp;
 }CalData_info;
 
-typedef enum 
+/*typedef enum 
 { 
      ACK = (uint8_t)0x00,
     start_of_file,
     end_of_file,
     data_trfr,
     NACK=0xff,
-}bt_st;
+}bt_st;*/
 
 typedef enum
 { 
@@ -59,21 +59,22 @@
   CalData_info          cal_data;
 }BLEMsg_info;
 
-typedef enum 
+/*typedef enum 
 { 
      sos= (uint8_t)0xc0,
      eos= (uint8_t)0xc0,
-}file_st;
+}file_st;*/
 
 
 
 typedef struct __attribute__((__packed__))
 {
 
- file_st start_end_of_string;
+uint8_t start_of_string;
  uint32_t length_file;
- bt_st proto;
+  uint8_t proto;
  BLEMsg_info  bt_msg;
+ uint8_t end_of_string;
  uint8_t chk_sum;
 
 }Point;
@@ -83,7 +84,11 @@
 uint8_t bt_receive(uint8_t send_rx);
 void send();
 void sendinit();
+void sendlast();
 void send_data_str1();
-void send_data_str2();
-
+void send_data_str2(uint8_t check_sum);
+uint8_t checksum(uint32_t  *v1);
+uint8_t checksum_init();;
+uint8_t checksum_last();
+uint8_t checksum_struct();
 #endif
\ No newline at end of file