created separate function for hex to char
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of SS_SensePOC2P0_11Dec2017_USERPID by
sdcard.h@15:208b146151ba, 2017-06-05 (annotated)
- Committer:
- nidhinvarghese
- Date:
- Mon Jun 05 09:14:44 2017 +0000
- Revision:
- 15:208b146151ba
- Parent:
- 14:f5c62d30c6fc
- Child:
- 19:1650bbc923cc
Heart rate is calculated; GLC - Not working
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 | |
nidhinvarghese | 8:adf2ba7e6412 | 9 | void sd_open_ECGfile(int pid); |
nidhinvarghese | 8:adf2ba7e6412 | 10 | void sd_open_ECGfilee(int pid); |
nidhinvarghese | 8:adf2ba7e6412 | 11 | void sd_open_GLCfile(int pid); |
nidhinvarghese | 8:adf2ba7e6412 | 12 | void sd_open_GLCfilee(int pid); |
nidhinvarghese | 8:adf2ba7e6412 | 13 | void sd_open_BPfilee(int pid); |
nidhinvarghese | 8:adf2ba7e6412 | 14 | void sd_open_BPfile(int pid); |
nidhinvarghese | 8:adf2ba7e6412 | 15 | void sd_write (int value); |
nidhinvarghese | 8:adf2ba7e6412 | 16 | |
nidhinvarghese | 8:adf2ba7e6412 | 17 | //void sd_BP_ppgwrite (uint32_t value); |
nidhinvarghese | 8:adf2ba7e6412 | 18 | //void sd_BP_ecgwrite (int value); |
nidhinvarghese | 8:adf2ba7e6412 | 19 | |
nidhinvarghese | 15:208b146151ba | 20 | FILE *sd_BP_ecgwrite (int32_t *fpdrum11); |
nidhinvarghese | 8:adf2ba7e6412 | 21 | FILE *sd_BP_ppgwrite (uint32_t *fpdrum21); |
nidhinvarghese | 8:adf2ba7e6412 | 22 | |
nidhinvarghese | 8:adf2ba7e6412 | 23 | void sd_open_BP_ECGfile(int pid); //added to write ECG to seperate file BP |
nidhinvarghese | 8:adf2ba7e6412 | 24 | void sd_open_BP_PPGfile(int pid); //added to write PPG to seperate file BP |
nidhinvarghese | 8:adf2ba7e6412 | 25 | |
nidhinvarghese | 14:f5c62d30c6fc | 26 | void sd_close(); // Close files opend with FILE pointer fp |
nidhinvarghese | 14:f5c62d30c6fc | 27 | void sd_close_ecg() ; // Close files opend with FILE pointer fpeecg |
nidhinvarghese | 14:f5c62d30c6fc | 28 | void sd_close_glc() ; //Close files opend with FILE pointer fpbg |
nidhinvarghese | 8:adf2ba7e6412 | 29 | |
nidhinvarghese | 8:adf2ba7e6412 | 30 | int sd_BP_ECGMAX(int pid); |
nidhinvarghese | 8:adf2ba7e6412 | 31 | int sd_BP_PPGMAX(int pid); |
nidhinvarghese | 8:adf2ba7e6412 | 32 | //void sd_close1(); |
nidhinvarghese | 8:adf2ba7e6412 | 33 | |
nidhinvarghese | 10:aeff3309002a | 34 | void create_single_BPfile(int pid); //Function to create 1 file from 2 temp BP file (ECG &PPG) |
nidhinvarghese | 10:aeff3309002a | 35 | |
nidhinvarghese | 14:f5c62d30c6fc | 36 | void sd_open_mainfile(int pid); // Function for oprning main file |
nidhinvarghese | 14:f5c62d30c6fc | 37 | //----------------- For testing |
nidhinvarghese | 14:f5c62d30c6fc | 38 | void structure_file(BLEMsg_info *ptr, int pid); // Writes structure to the File. |
nidhinvarghese | 14:f5c62d30c6fc | 39 | |
nidhinvarghese | 14:f5c62d30c6fc | 40 | void bpfile_mainfile(int pid); |
nidhinvarghese | 8:adf2ba7e6412 | 41 | |
nidhinvarghese | 14:f5c62d30c6fc | 42 | void sd_ecgwrite(int *ecg_ptr); //to print ECG data in ECG func as binary using fwrite. NIDHIN 25 May 2017 |
nidhinvarghese | 14:f5c62d30c6fc | 43 | void ecgfile_mainfile(int pid); |
nidhinvarghese | 14:f5c62d30c6fc | 44 | |
nidhinvarghese | 14:f5c62d30c6fc | 45 | void sd_glcwrite(uint32_t *glc_ptr, int pid); // GLC raw data to GLC file |
nidhinvarghese | 14:f5c62d30c6fc | 46 | void glcfile_mainfile(int pid); // GLC file to main file |
nidhinvarghese | 14:f5c62d30c6fc | 47 | |
nidhinvarghese | 14:f5c62d30c6fc | 48 | void delete_subfiles(int pid); //deletes all subfiles under a pid |
nidhinvarghese | 14:f5c62d30c6fc | 49 | |
nidhinvarghese | 14:f5c62d30c6fc | 50 | |
nidhinvarghese | 14:f5c62d30c6fc | 51 | #endif |