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
Diff: ec_bp.cpp
- Revision:
- 20:7c64e6ecad76
- Parent:
- 11:9a6545c2eb5d
- Child:
- 36:00d96aa14658
diff -r 1650bbc923cc -r 7c64e6ecad76 ec_bp.cpp
--- a/ec_bp.cpp Fri Jun 09 17:12:21 2017 +0000
+++ b/ec_bp.cpp Sat Jun 17 09:36:18 2017 +0000
@@ -19,7 +19,7 @@
unsigned int value4;
unsigned int value5;
unsigned int value6;
- unsigned int data1;
+ uint8_t data1;
unsigned int count;
//unsigned char chk2= 0;
@@ -173,6 +173,7 @@
wait(0.5);
regRead(REG_LOFF_STAT);//Read LOFF_STAT register
printf("REG_LOFF_STAT register read from ADS for ecg setup is= 0x%X\n",data1);
+
}
void doHelp(void)
@@ -312,12 +313,13 @@
ADS_START = 1;
}
- void ecgsetupfunc()
+uint8_t ecgsetupfunc()
{
+ // uint8_t lead=0;
ecgsetup(); // To set the ADS1291 registers for ECG signal generation
cmdWrite(CMD_RDATAC) ;
ADS_START = 1;
-
+ return data1; // returns lead off reg value // 14/06
}
void ecgtestsetupfunc()
