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-09-16
- Revision:
- 50:b42238e7f46d
- Parent:
- 49:3ff80c4bc1be
File content as of revision 50:b42238e7f46d:
// 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(uint32_t pid); //void sd_open_GLCfile(int pid); void sd_open_GLCfilee(uint32_t pid); void sd_open_BPfilee(uint32_t pid); //void sd_open_BPfile(int pid); void sd_write (int value); uint32_t file_size() ; uint32_t file_size1() ; void sd_read(uint32_t *v1, uint16_t size); uint8_t sd_open_read(uint32_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); uint16_t heart_cal(int pid); FILE *sd_BP_ecgwrite (uint32_t *fpdrum11); FILE *sd_BP_ppgwrite (uint32_t *fpdrum21); void sd_open_BP_ECGfile(uint32_t pid); //added to write ECG to seperate file BP void sd_open_BP_PPGfile(uint32_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 //void sd_close1(); void create_single_BPfile(uint32_t pid); //Function to create 1 file from 2 temp BP file (ECG &PPG) void sd_open_mainfile(uint32_t pid); // Function for oprning main file //----------------- For testing void structure_file(BLEMsg_info *ptr, uint32_t pid); // Writes structure to the File. void bpfile_mainfile(uint32_t pid); void sd_ecgwrite(uint32_t *ecg_ptr); //to print ECG data in ECG func as binary using fwrite. NIDHIN 25 May 2017 void ecgfile_mainfile(uint32_t pid); void sd_glcwrite(uint32_t *glc_ptr, uint32_t pid); // GLC raw data to GLC file void glcfile_mainfile(uint32_t pid); // GLC file to main file void delete_subfiles(uint32_t pid); //deletes all subfiles under a pid void del_ppg_ecg_BPfile(uint32_t pid); // deletes temporary ECG_PPG files in BP when ERROR condition- 22/7/17-Suhasini void sd_write(uint32_t *pid_btpid); void sd_read(uint32_t *pid_btpid); void delete_sdcard(void); //delete sd card //void readfile(uint32_t pid); void read_structure(FILE *fp_read_sdcard_file); void read_sdcard_file(); // void print_structure(uint32_t pid); #endif