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:
14:f5c62d30c6fc
Child:
19:1650bbc923cc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/struct.h	Thu Jun 01 09:24:45 2017 +0000
@@ -0,0 +1,47 @@
+#ifndef STRUCT_H_
+#define STRUCT_H_
+
+#include "bp.h"
+#include "glc.h"
+#include "ecg_dec.h"
+#include "test_type.h"
+
+
+typedef struct __attribute__((__packed__))
+{
+    uint8_t               date;
+    uint8_t               month;
+    uint8_t               year;
+    uint8_t               hour;
+    uint8_t               mins;
+    uint8_t               sec;
+}DateTime_info;
+
+typedef struct __attribute__((__packed__))
+{
+    uint16_t             num_sample_ppg_dummy;
+    uint16_t             num_sample_ecg_OTtyp;
+}NumSamples_info;
+
+
+typedef struct __attribute__((__packed__))
+{
+    uint16_t             cal_sbp_dummy;
+    uint16_t             cal_dbp_OTtyp;
+}CalData_info;
+
+
+
+typedef struct __attribute__((__packed__))
+{
+  uint32_t               length;
+  uint8_t                device_id;
+  uint32_t              patient_id;
+  DateTime_info         date_time;
+  test_type_info        test_type;
+  uint16_t               sampling_freq;
+  NumSamples_info       num_samples;
+  CalData_info          cal_data;
+}BLEMsg_info;
+
+#endif
\ No newline at end of file