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
Diff: sdcard.cpp
- Revision:
- 43:85a7f399cb9d
- Parent:
- 42:c81673b04b6a
- Child:
- 46:162ed3f051b2
--- a/sdcard.cpp Mon Sep 11 10:02:46 2017 +0000
+++ b/sdcard.cpp Mon Sep 11 13:09:29 2017 +0000
@@ -54,7 +54,7 @@
} */
- void sd_open_GLCfilee(int32_t pid) // only opening the glc file after entering TEST screen
+ void sd_open_GLCfilee(uint32_t pid) // only opening the glc file after entering TEST screen
{
char buffer1[32];
sprintf(buffer1,"/sd/%d_GLC.csv",pid);
@@ -63,7 +63,7 @@
}
- void sd_open_ECGfilee(int32_t pid) // only opening the ECG file after entering TEST screen
+ void sd_open_ECGfilee(uint32_t pid) // only opening the ECG file after entering TEST screen
{
char buffer1[32];
@@ -74,7 +74,7 @@
}
-void sd_open_BPfilee(int32_t pid) // only opening the BP file after entering TEST screen
+void sd_open_BPfilee(uint32_t pid) // only opening the BP file after entering TEST screen
{
@@ -91,7 +91,7 @@
}
-uint8_t sd_open_read(int32_t pid) // opening the file for read // CHNAGED to return value
+uint8_t sd_open_read(uint32_t pid) // opening the file for read // CHNAGED to return value
{
char buffer1[32];
@@ -184,7 +184,7 @@
}
//-----------------------------------------------SD Read
- void sd_reopen_BPfilee(int32_t pid) // only opening the BP file after entering TEST screen
+ void sd_reopen_BPfilee(uint32_t pid) // only opening the BP file after entering TEST screen
{
@@ -201,7 +201,7 @@
//---------------------------------------
- void sd_open_BP_ECGfile(int32_t pid)
+ void sd_open_BP_ECGfile(uint32_t pid)
{
//char buffer[32];
@@ -221,7 +221,7 @@
}
- void sd_open_BP_PPGfile(int32_t pid)
+ void sd_open_BP_PPGfile(uint32_t pid)
{
char buffer1[32];
@@ -278,7 +278,7 @@
//------- FUNCTION TO CREATE SINGLE BP FILE --------2/5/2017 (NIDHIN)---------------//
- void create_single_BPfile(int32_t pid)
+ void create_single_BPfile(uint32_t pid)
{
//int ecgbuf[64] = {0};
@@ -341,7 +341,7 @@
//Creating strcuture file Common to All Functions
-void structure_file(BLEMsg_info *ptr, int32_t pid)
+void structure_file(BLEMsg_info *ptr, uint32_t pid)
{
char buffer3[32];
sprintf(buffer3, "/sd/%d.csv", pid); //Printing file path to the buffer
@@ -362,7 +362,7 @@
//Copy Data into file.
-void bpfile_mainfile(int32_t pid) //Copy data of bp file to main
+void bpfile_mainfile(uint32_t pid) //Copy data of bp file to main
{
char buffer3[32];
sprintf(buffer3, "/sd/%d.csv", pid);
@@ -394,7 +394,7 @@
//------------ Function to write ECG data to main file
-void ecgfile_mainfile(int32_t pid)
+void ecgfile_mainfile(uint32_t pid)
{
char buffer3[32];
sprintf(buffer3, "/sd/%d.csv", pid);
@@ -428,7 +428,7 @@
//---------------------- Function to write GLC data to GLC file
-void sd_glcwrite(uint32_t *glc_ptr, int32_t pid)
+void sd_glcwrite(uint32_t *glc_ptr, uint32_t pid)
{
char buffer3[32];
sprintf(buffer3, "/sd/%d_GLC.csv", pid);
@@ -441,7 +441,7 @@
// --------------------------Fuinction to write GLC data to Main file
-void glcfile_mainfile(int32_t pid)
+void glcfile_mainfile(uint32_t pid)
{
char buffer3[32];
sprintf(buffer3, "/sd/%d.csv", pid);
@@ -465,7 +465,7 @@
}
-void delete_subfiles(int32_t pid)
+void delete_subfiles(uint32_t pid)
{
char buffer3[32];
int success1 , success2, success3;
@@ -499,7 +499,7 @@
}
-void del_ppg_ecg_BPfile(int32_t pid)
+void del_ppg_ecg_BPfile(uint32_t pid)
{
int status = 1 ;
char buffer3[32];
