Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of SS_SensePOC2P0_11Dec2017_USERPID 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(uint32_t pid); 00011 //void sd_open_GLCfile(int pid); 00012 void sd_open_GLCfilee(uint32_t pid); 00013 void sd_open_BPfilee(uint32_t pid); 00014 //void sd_open_BPfile(int pid); 00015 void sd_write (int value); 00016 uint32_t file_size() ; 00017 uint32_t file_size1() ; 00018 void sd_read(uint32_t *v1, uint16_t size); 00019 uint8_t sd_open_read(uint32_t pid); 00020 void sd_read1(BLEMsg_info &f); 00021 void setpos(); 00022 void setpos1(uint32_t position); 00023 00024 //void sd_BP_ppgwrite (uint32_t value); 00025 //void sd_BP_ecgwrite (int value); 00026 uint16_t heart_cal(int pid); 00027 FILE *sd_BP_ecgwrite (uint32_t *fpdrum11); 00028 FILE *sd_BP_ppgwrite (uint32_t *fpdrum21); 00029 00030 void sd_open_BP_ECGfile(uint32_t pid); //added to write ECG to seperate file BP 00031 void sd_open_BP_PPGfile(uint32_t pid); //added to write PPG to seperate file BP 00032 00033 void sd_close(); // Close files opend with FILE pointer fp 00034 void sd_close_ecg() ; // Close files opend with FILE pointer fpeecg 00035 void sd_close_glc() ; //Close files opend with FILE pointer fpbg 00036 00037 //void sd_close1(); 00038 00039 void create_single_BPfile(uint32_t pid); //Function to create 1 file from 2 temp BP file (ECG &PPG) 00040 00041 void sd_open_mainfile(uint32_t pid); // Function for oprning main file 00042 //----------------- For testing 00043 void structure_file(BLEMsg_info *ptr, uint32_t pid); // Writes structure to the File. 00044 00045 void bpfile_mainfile(uint32_t pid); 00046 00047 void sd_ecgwrite(uint32_t *ecg_ptr); //to print ECG data in ECG func as binary using fwrite. NIDHIN 25 May 2017 00048 void ecgfile_mainfile(uint32_t pid); 00049 00050 void sd_glcwrite(uint32_t *glc_ptr, uint32_t pid); // GLC raw data to GLC file 00051 void glcfile_mainfile(uint32_t pid); // GLC file to main file 00052 00053 void delete_subfiles(uint32_t pid); //deletes all subfiles under a pid 00054 00055 void del_ppg_ecg_BPfile(uint32_t pid); // deletes temporary ECG_PPG files in BP when ERROR condition- 22/7/17-Suhasini 00056 void sd_write(uint32_t *pid_btpid); 00057 void sd_read(uint32_t *pid_btpid); 00058 void delete_sdcard(void); //delete sd card 00059 //void readfile(uint32_t pid); 00060 void read_structure(FILE *fp_read_sdcard_file); 00061 void read_sdcard_file(); 00062 uint8_t dummy_file_create_delete(); 00063 #endif
Generated on Mon Jul 18 2022 19:19:02 by
1.7.2
