Modification into 17th July New display demo code
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of Ext_Demo_17July2017_newdis by
sdcard.h
00001 // Exisiting code in Int_Demo_09May2017_suhasini/sdcard.h is deleted and replaced by new code 00002 //Nidhin 1/6/2017 00003 00004 #ifndef SDCARD_H_ 00005 #define SDCARD_H_ 00006 00007 #include "struct.h" 00008 00009 //void sd_open_ECGfile(int pid); 00010 void sd_open_ECGfilee(int32_t pid); 00011 //void sd_open_GLCfile(int pid); 00012 void sd_open_GLCfilee(int32_t pid); 00013 void sd_open_BPfilee(int32_t pid); 00014 //void sd_open_BPfile(int pid); 00015 void sd_write (int value); 00016 int file_size() ; 00017 int file_size1() ; 00018 void sd_read(uint32_t *v1, int size); 00019 uint8_t sd_open_read(int32_t pid); 00020 void sd_read1(BLEMsg_info &f); 00021 void setpos(); 00022 void setpos1(uint32_t position); 00023 //void sd_BP_ppgwrite (uint32_t value); 00024 //void sd_BP_ecgwrite (int value); 00025 uint16_t heart_cal(int pid); 00026 FILE *sd_BP_ecgwrite (int32_t *fpdrum11); 00027 FILE *sd_BP_ppgwrite (uint32_t *fpdrum21); 00028 00029 void sd_open_BP_ECGfile(int32_t pid); //added to write ECG to seperate file BP 00030 void sd_open_BP_PPGfile(int32_t pid); //added to write PPG to seperate file BP 00031 00032 void sd_close(); // Close files opend with FILE pointer fp 00033 void sd_close_ecg() ; // Close files opend with FILE pointer fpeecg 00034 void sd_close_glc() ; //Close files opend with FILE pointer fpbg 00035 00036 int sd_BP_ECGMAX(int32_t pid); 00037 int sd_BP_PPGMAX(int32_t pid); 00038 //void sd_close1(); 00039 00040 void create_single_BPfile(int32_t pid); //Function to create 1 file from 2 temp BP file (ECG &PPG) 00041 00042 void sd_open_mainfile(int32_t pid); // Function for oprning main file 00043 //----------------- For testing 00044 void structure_file(BLEMsg_info *ptr, int32_t pid); // Writes structure to the File. 00045 00046 void bpfile_mainfile(int32_t pid); 00047 00048 void sd_ecgwrite(uint32_t *ecg_ptr); //to print ECG data in ECG func as binary using fwrite. NIDHIN 25 May 2017 00049 void ecgfile_mainfile(int32_t pid); 00050 00051 void sd_glcwrite(uint32_t *glc_ptr, int32_t pid); // GLC raw data to GLC file 00052 void glcfile_mainfile(int32_t pid); // GLC file to main file 00053 00054 void delete_subfiles(int32_t pid); //deletes all subfiles under a pid 00055 00056 00057 #endif
Generated on Wed Jul 13 2022 16:15:21 by 1.7.2