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@50:b42238e7f46d, 2017-09-16 (annotated)
- Committer:
- nikitateggi
- Date:
- Sat Sep 16 06:54:42 2017 +0000
- Revision:
- 50:b42238e7f46d
- Parent:
- 49:3ff80c4bc1be
modified in sd read debug
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nidhinvarghese | 14:f5c62d30c6fc | 1 | // Exisiting code in Int_Demo_09May2017_suhasini/sdcard.h is deleted and replaced by new code |
nidhinvarghese | 14:f5c62d30c6fc | 2 | //Nidhin 1/6/2017 |
nidhinvarghese | 14:f5c62d30c6fc | 3 | |
nikitateggi | 1:8316c23ec6b9 | 4 | #ifndef SDCARD_H_ |
nikitateggi | 1:8316c23ec6b9 | 5 | #define SDCARD_H_ |
nikitateggi | 1:8316c23ec6b9 | 6 | |
nidhinvarghese | 14:f5c62d30c6fc | 7 | #include "struct.h" |
nidhinvarghese | 8:adf2ba7e6412 | 8 | |
nikitateggi | 20:7c64e6ecad76 | 9 | //void sd_open_ECGfile(int pid); |
rashmivenkataramaiah | 43:85a7f399cb9d | 10 | void sd_open_ECGfilee(uint32_t pid); |
nikitateggi | 20:7c64e6ecad76 | 11 | //void sd_open_GLCfile(int pid); |
rashmivenkataramaiah | 43:85a7f399cb9d | 12 | void sd_open_GLCfilee(uint32_t pid); |
rashmivenkataramaiah | 43:85a7f399cb9d | 13 | void sd_open_BPfilee(uint32_t pid); |
nikitateggi | 20:7c64e6ecad76 | 14 | //void sd_open_BPfile(int pid); |
nidhinvarghese | 8:adf2ba7e6412 | 15 | void sd_write (int value); |
nikitateggi | 46:162ed3f051b2 | 16 | uint32_t file_size() ; |
nikitateggi | 46:162ed3f051b2 | 17 | uint32_t file_size1() ; |
nikitateggi | 46:162ed3f051b2 | 18 | void sd_read(uint32_t *v1, uint16_t size); |
rashmivenkataramaiah | 43:85a7f399cb9d | 19 | uint8_t sd_open_read(uint32_t pid); |
nikitateggi | 19:1650bbc923cc | 20 | void sd_read1(BLEMsg_info &f); |
nikitateggi | 19:1650bbc923cc | 21 | void setpos(); |
nikitateggi | 19:1650bbc923cc | 22 | void setpos1(uint32_t position); |
nikitateggi | 49:3ff80c4bc1be | 23 | |
nidhinvarghese | 8:adf2ba7e6412 | 24 | //void sd_BP_ppgwrite (uint32_t value); |
nidhinvarghese | 8:adf2ba7e6412 | 25 | //void sd_BP_ecgwrite (int value); |
nikitateggi | 22:ffa88619551d | 26 | uint16_t heart_cal(int pid); |
avp2417 | 36:00d96aa14658 | 27 | FILE *sd_BP_ecgwrite (uint32_t *fpdrum11); |
nidhinvarghese | 8:adf2ba7e6412 | 28 | FILE *sd_BP_ppgwrite (uint32_t *fpdrum21); |
nidhinvarghese | 8:adf2ba7e6412 | 29 | |
rashmivenkataramaiah | 43:85a7f399cb9d | 30 | void sd_open_BP_ECGfile(uint32_t pid); //added to write ECG to seperate file BP |
rashmivenkataramaiah | 43:85a7f399cb9d | 31 | void sd_open_BP_PPGfile(uint32_t pid); //added to write PPG to seperate file BP |
nidhinvarghese | 8:adf2ba7e6412 | 32 | |
nidhinvarghese | 14:f5c62d30c6fc | 33 | void sd_close(); // Close files opend with FILE pointer fp |
nidhinvarghese | 14:f5c62d30c6fc | 34 | void sd_close_ecg() ; // Close files opend with FILE pointer fpeecg |
nidhinvarghese | 14:f5c62d30c6fc | 35 | void sd_close_glc() ; //Close files opend with FILE pointer fpbg |
nidhinvarghese | 8:adf2ba7e6412 | 36 | |
nidhinvarghese | 8:adf2ba7e6412 | 37 | //void sd_close1(); |
nidhinvarghese | 8:adf2ba7e6412 | 38 | |
rashmivenkataramaiah | 43:85a7f399cb9d | 39 | void create_single_BPfile(uint32_t pid); //Function to create 1 file from 2 temp BP file (ECG &PPG) |
nidhinvarghese | 10:aeff3309002a | 40 | |
rashmivenkataramaiah | 43:85a7f399cb9d | 41 | void sd_open_mainfile(uint32_t pid); // Function for oprning main file |
nidhinvarghese | 14:f5c62d30c6fc | 42 | //----------------- For testing |
rashmivenkataramaiah | 43:85a7f399cb9d | 43 | void structure_file(BLEMsg_info *ptr, uint32_t pid); // Writes structure to the File. |
nidhinvarghese | 14:f5c62d30c6fc | 44 | |
rashmivenkataramaiah | 43:85a7f399cb9d | 45 | void bpfile_mainfile(uint32_t pid); |
nidhinvarghese | 8:adf2ba7e6412 | 46 | |
suhasini | 26:53ff13a164f3 | 47 | void sd_ecgwrite(uint32_t *ecg_ptr); //to print ECG data in ECG func as binary using fwrite. NIDHIN 25 May 2017 |
rashmivenkataramaiah | 43:85a7f399cb9d | 48 | void ecgfile_mainfile(uint32_t pid); |
nidhinvarghese | 14:f5c62d30c6fc | 49 | |
rashmivenkataramaiah | 43:85a7f399cb9d | 50 | void sd_glcwrite(uint32_t *glc_ptr, uint32_t pid); // GLC raw data to GLC file |
rashmivenkataramaiah | 43:85a7f399cb9d | 51 | void glcfile_mainfile(uint32_t pid); // GLC file to main file |
nidhinvarghese | 14:f5c62d30c6fc | 52 | |
rashmivenkataramaiah | 43:85a7f399cb9d | 53 | void delete_subfiles(uint32_t pid); //deletes all subfiles under a pid |
nidhinvarghese | 14:f5c62d30c6fc | 54 | |
rashmivenkataramaiah | 43:85a7f399cb9d | 55 | void del_ppg_ecg_BPfile(uint32_t pid); // deletes temporary ECG_PPG files in BP when ERROR condition- 22/7/17-Suhasini |
rashmivenkataramaiah | 41:1141a75eacc4 | 56 | void sd_write(uint32_t *pid_btpid); |
rashmivenkataramaiah | 41:1141a75eacc4 | 57 | void sd_read(uint32_t *pid_btpid); |
nikitateggi | 49:3ff80c4bc1be | 58 | void delete_sdcard(void); //delete sd card |
nikitateggi | 49:3ff80c4bc1be | 59 | //void readfile(uint32_t pid); |
nikitateggi | 49:3ff80c4bc1be | 60 | void read_structure(FILE *fp_read_sdcard_file); |
nikitateggi | 50:b42238e7f46d | 61 | void read_sdcard_file(); |
nikitateggi | 49:3ff80c4bc1be | 62 | // void print_structure(uint32_t pid); |
nidhinvarghese | 14:f5c62d30c6fc | 63 | #endif |