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 merged_code2_20sept_2017_4th_oct_2017 by
sdcard.h
- Committer:
- avp2417
- Date:
- 2017-07-29
- Revision:
- 36:00d96aa14658
- Parent:
- 27:907f8ce0025e
- Child:
- 41:1141a75eacc4
File content as of revision 36:00d96aa14658:
// 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(int32_t pid);
//void sd_open_GLCfile(int pid);
void sd_open_GLCfilee(int32_t pid);
void sd_open_BPfilee(int32_t pid);
//void sd_open_BPfile(int pid);
void sd_write (int value);
int file_size() ;
int file_size1() ;
void sd_read(uint32_t *v1, int size);
uint8_t sd_open_read(int32_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(int32_t pid); //added to write ECG to seperate file BP
void sd_open_BP_PPGfile(int32_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(int32_t pid); //Function to create 1 file from 2 temp BP file (ECG &PPG)
void sd_open_mainfile(int32_t pid); // Function for oprning main file
//----------------- For testing
void structure_file(BLEMsg_info *ptr, int32_t pid); // Writes structure to the File.
void bpfile_mainfile(int32_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(int32_t pid);
void sd_glcwrite(uint32_t *glc_ptr, int32_t pid); // GLC raw data to GLC file
void glcfile_mainfile(int32_t pid); // GLC file to main file
void delete_subfiles(int32_t pid); //deletes all subfiles under a pid
void del_ppg_ecg_BPfile(int32_t pid); // deletes temporary ECG_PPG files in BP when ERROR condition- 22/7/17-Suhasini
#endif
