HSP Platform firmware evaluating ECG data and hearth rate over PPG data.

Dependencies:   max32630fthr Adafruit_FeatherOLED USBDevice

Revision:
1:f60eafbf009a
Child:
3:2fe2ff1ca0dc
diff -r 07d28b5db986 -r f60eafbf009a Interfaces/SensorComm/EcgComm/EcgComm_Defines.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Interfaces/SensorComm/EcgComm/EcgComm_Defines.h	Wed Apr 10 14:56:25 2019 +0300
@@ -0,0 +1,65 @@
+#ifndef _ECGCOMM_DEFINES_H
+#define _ECGCOMM_DEFINES_H
+
+
+
+
+/// Initialization values for ECG_InitStart()
+#define EN_ECG	 	  0b1
+#define OPENP	 	  0b0
+#define OPENN	 	  0b0
+#define POL			  0b0
+#define CALP_SEL     0b00
+#define CALN_SEL     0b00
+#define E_FIT	       15
+#define RATE	        2
+#define GAIN	     0b00
+#define DHPF	     0b01
+#define DLPF	     0b01
+
+// Default Initialization Parameters for RtoR_InitStart
+#define EN_RTOR     0x01
+#define WNDW		0x03
+#define GAIN_RTOR	0x0F
+#define PAVG		0x02
+#define PTSF		0x03
+#define HOFF		0x20
+#define RAVG		0x02
+#define RHSF		0x04
+#define CLR_RRINT	0x01
+
+// Optimal Initialization Parameters for RtoR_InitStart
+#define EN_RTOR_OP     0x01
+#define WNDW_OP		0x02
+#define GAIN_RTOR_OP	0x06
+#define PAVG_OP		0x01
+#define PTSF_OP		0x06
+#define HOFF_OP		0x1E
+#define RAVG_OP		0x02
+#define RHSF_OP		0x00
+#define CLR_RRINT_OP	0x01
+
+
+// Default Initialization Parameters for INT_assignment
+#define EN_ENINT_LOC		0x01
+#define EN_EOVF_LOC			0x00
+#define EN_FSTINT_LOC		0x00
+#define EN_DCLOFFINT_LOC	0x02
+#define EN_BINT_LOC			0x01
+#define EN_BOVF_LOC			0x00
+#define EN_BOVER_LOC		0x02
+#define EN_BUNDR_LOC		0x02
+#define EN_BCGMON_LOC		0x00
+#define EN_PINT_LOC			0x00
+#define EN_POVF_LOC			0x00
+#define EN_PEDGE_LOC		0x00
+#define EN_LONINT_LOC		0x00
+#define EN_RRINT_LOC		0x02
+#define EN_SAMP_LOC			0x00
+#define INTB_TYPE			0x03
+#define INT2B_TYPE			0x03
+
+
+
+
+#endif