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:
20:7c64e6ecad76
Child:
26:53ff13a164f3
--- a/sdcard.h	Wed Jun 21 08:39:10 2017 +0000
+++ b/sdcard.h	Fri Jun 23 07:25:24 2017 +0000
@@ -7,10 +7,10 @@
 #include "struct.h"
 
 //void sd_open_ECGfile(int pid);
-void sd_open_ECGfilee(int pid);
+void sd_open_ECGfilee(int32_t pid);
 //void sd_open_GLCfile(int pid);
-void sd_open_GLCfilee(int pid);
-void sd_open_BPfilee(int pid);
+void sd_open_GLCfilee(int32_t pid);
+void sd_open_BPfilee(int32_t pid);
 //void sd_open_BPfile(int pid);
 void sd_write (int value);
 int file_size() ;
@@ -22,36 +22,36 @@
 void setpos1(uint32_t position);
 //void sd_BP_ppgwrite (uint32_t value);
 //void sd_BP_ecgwrite (int value);
-
+uint16_t heart_cal(int pid);
 FILE *sd_BP_ecgwrite (int32_t *fpdrum11);
 FILE *sd_BP_ppgwrite (uint32_t *fpdrum21);
  
-void sd_open_BP_ECGfile(int pid); //added to write ECG to seperate file BP
-void sd_open_BP_PPGfile(int pid); //added to write PPG to seperate file BP
+void sd_open_BP_ECGfile(int32_t pid); //added to write ECG to seperate file BP
+void sd_open_BP_PPGfile(int32_t pid); //added to write PPG to seperate file BP
 
 void sd_close();               // Close files opend with FILE pointer fp
  void sd_close_ecg() ;            // Close files opend with FILE pointer fpeecg
  void sd_close_glc() ;            //Close files opend with FILE pointer fpbg
 
-int sd_BP_ECGMAX(int pid);
-int sd_BP_PPGMAX(int pid);
+int sd_BP_ECGMAX(int32_t pid);
+int sd_BP_PPGMAX(int32_t pid);
 //void sd_close1();
 
-void create_single_BPfile(int pid); //Function to create 1 file from 2 temp BP file (ECG &PPG)
+void create_single_BPfile(int32_t pid); //Function to create 1 file from 2 temp BP file (ECG &PPG)
 
-void sd_open_mainfile(int pid); // Function for oprning main file
+void sd_open_mainfile(int32_t pid); // Function for oprning main file
 //----------------- For testing
-void structure_file(BLEMsg_info *ptr, int pid); // Writes structure to the File.
+void structure_file(BLEMsg_info *ptr, int32_t pid); // Writes structure to the File.
 
-void bpfile_mainfile(int pid);
+void bpfile_mainfile(int32_t pid);
 
 void sd_ecgwrite(int *ecg_ptr);  //to print ECG data in ECG func as binary using fwrite.   NIDHIN 25 May 2017
-void ecgfile_mainfile(int pid); 
+void ecgfile_mainfile(int32_t pid); 
 
-void sd_glcwrite(uint32_t *glc_ptr, int pid);  // GLC raw data to GLC file
-void glcfile_mainfile(int pid);  // GLC file to main file
+void sd_glcwrite(uint32_t *glc_ptr, int32_t pid);  // GLC raw data to GLC file
+void glcfile_mainfile(int32_t pid);  // GLC file to main file
 
-void delete_subfiles(int pid);  //deletes all subfiles under a pid
+void delete_subfiles(int32_t pid);  //deletes all subfiles under a pid
 
 
 #endif 
\ No newline at end of file