Changes done in ECG and BT
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of merged_code2_20sept_2017_4th_oct_2017 by
sdcard.h
- Committer:
- nikitateggi
- Date:
- 2017-06-09
- Revision:
- 19:1650bbc923cc
- Parent:
- 15:208b146151ba
- Child:
- 20:7c64e6ecad76
File content as of revision 19:1650bbc923cc:
// Exisiting code in Int_Demo_09May2017_suhasini/sdcard.h is deleted and replaced by new code //Nidhin 1/6/2017 #ifndef SDCARD_H_ #define SDCARD_H_ #include "struct.h" void sd_open_ECGfile(int pid); void sd_open_ECGfilee(int pid); void sd_open_GLCfile(int pid); void sd_open_GLCfilee(int pid); void sd_open_BPfilee(int pid); void sd_open_BPfile(int pid); void sd_write (int value); int file_size() ; int file_size1() ; void sd_read(uint32_t *v1, int size); void sd_open_read(int32_t pid); void sd_read1(BLEMsg_info &f); void setpos(); void setpos1(uint32_t position); //void sd_BP_ppgwrite (uint32_t value); //void sd_BP_ecgwrite (int value); 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_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); //void sd_close1(); void create_single_BPfile(int pid); //Function to create 1 file from 2 temp BP file (ECG &PPG) void sd_open_mainfile(int pid); // Function for oprning main file //----------------- For testing void structure_file(BLEMsg_info *ptr, int pid); // Writes structure to the File. void bpfile_mainfile(int 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 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 delete_subfiles(int pid); //deletes all subfiles under a pid #endif