HSP Platform firmware evaluating ECG data and hearth rate over PPG data.
Dependencies: max32630fthr Adafruit_FeatherOLED USBDevice
Interfaces/SensorComm/EcgComm/EcgComm_Defines.h@4:682a4ebb995a, 2021-03-25 (annotated)
- Committer:
- phonemacro
- Date:
- Thu Mar 25 21:59:17 2021 +0000
- Revision:
- 4:682a4ebb995a
- Parent:
- 3:2fe2ff1ca0dc
fix compile errors from mbed OS changes.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 1 | /******************************************************************************* |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 2 | * Copyright (C) Maxim Integrated Products, Inc., All rights Reserved. |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 3 | * |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 4 | * This software is protected by copyright laws of the United States and |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 5 | * of foreign countries. This material may also be protected by patent laws |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 6 | * and technology transfer regulations of the United States and of foreign |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 7 | * countries. This software is furnished under a license agreement and/or a |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 8 | * nondisclosure agreement and may only be used or reproduced in accordance |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 9 | * with the terms of those agreements. Dissemination of this information to |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 10 | * any party or parties not specified in the license agreement and/or |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 11 | * nondisclosure agreement is expressly prohibited. |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 12 | * |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 13 | * The above copyright notice and this permission notice shall be included |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 14 | * in all copies or substantial portions of the Software. |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 15 | * |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 19 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 20 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 21 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 22 | * OTHER DEALINGS IN THE SOFTWARE. |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 23 | * |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 24 | * Except as contained in this notice, the name of Maxim Integrated |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 25 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 26 | * Products, Inc. Branding Policy. |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 27 | * |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 28 | * The mere transfer of this software does not imply any licenses |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 29 | * of trade secrets, proprietary technology, copyrights, patents, |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 30 | * trademarks, maskwork rights, or any other form of intellectual |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 31 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 32 | * ownership rights. |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 33 | ******************************************************************************* |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 34 | */ |
| Emre.Eken@IST-LT-36262.maxim-ic.internal | 3:2fe2ff1ca0dc | 35 | |
| gmehmet | 1:f60eafbf009a | 36 | #ifndef _ECGCOMM_DEFINES_H |
| gmehmet | 1:f60eafbf009a | 37 | #define _ECGCOMM_DEFINES_H |
| gmehmet | 1:f60eafbf009a | 38 | |
| gmehmet | 1:f60eafbf009a | 39 | |
| gmehmet | 1:f60eafbf009a | 40 | |
| gmehmet | 1:f60eafbf009a | 41 | |
| gmehmet | 1:f60eafbf009a | 42 | /// Initialization values for ECG_InitStart() |
| gmehmet | 1:f60eafbf009a | 43 | #define EN_ECG 0b1 |
| gmehmet | 1:f60eafbf009a | 44 | #define OPENP 0b0 |
| gmehmet | 1:f60eafbf009a | 45 | #define OPENN 0b0 |
| gmehmet | 1:f60eafbf009a | 46 | #define POL 0b0 |
| gmehmet | 1:f60eafbf009a | 47 | #define CALP_SEL 0b00 |
| gmehmet | 1:f60eafbf009a | 48 | #define CALN_SEL 0b00 |
| gmehmet | 1:f60eafbf009a | 49 | #define E_FIT 15 |
| gmehmet | 1:f60eafbf009a | 50 | #define RATE 2 |
| gmehmet | 1:f60eafbf009a | 51 | #define GAIN 0b00 |
| gmehmet | 1:f60eafbf009a | 52 | #define DHPF 0b01 |
| gmehmet | 1:f60eafbf009a | 53 | #define DLPF 0b01 |
| gmehmet | 1:f60eafbf009a | 54 | |
| gmehmet | 1:f60eafbf009a | 55 | // Default Initialization Parameters for RtoR_InitStart |
| gmehmet | 1:f60eafbf009a | 56 | #define EN_RTOR 0x01 |
| gmehmet | 1:f60eafbf009a | 57 | #define WNDW 0x03 |
| gmehmet | 1:f60eafbf009a | 58 | #define GAIN_RTOR 0x0F |
| gmehmet | 1:f60eafbf009a | 59 | #define PAVG 0x02 |
| gmehmet | 1:f60eafbf009a | 60 | #define PTSF 0x03 |
| gmehmet | 1:f60eafbf009a | 61 | #define HOFF 0x20 |
| gmehmet | 1:f60eafbf009a | 62 | #define RAVG 0x02 |
| gmehmet | 1:f60eafbf009a | 63 | #define RHSF 0x04 |
| gmehmet | 1:f60eafbf009a | 64 | #define CLR_RRINT 0x01 |
| gmehmet | 1:f60eafbf009a | 65 | |
| gmehmet | 1:f60eafbf009a | 66 | // Optimal Initialization Parameters for RtoR_InitStart |
| gmehmet | 1:f60eafbf009a | 67 | #define EN_RTOR_OP 0x01 |
| gmehmet | 1:f60eafbf009a | 68 | #define WNDW_OP 0x02 |
| gmehmet | 1:f60eafbf009a | 69 | #define GAIN_RTOR_OP 0x06 |
| gmehmet | 1:f60eafbf009a | 70 | #define PAVG_OP 0x01 |
| gmehmet | 1:f60eafbf009a | 71 | #define PTSF_OP 0x06 |
| gmehmet | 1:f60eafbf009a | 72 | #define HOFF_OP 0x1E |
| gmehmet | 1:f60eafbf009a | 73 | #define RAVG_OP 0x02 |
| gmehmet | 1:f60eafbf009a | 74 | #define RHSF_OP 0x00 |
| gmehmet | 1:f60eafbf009a | 75 | #define CLR_RRINT_OP 0x01 |
| gmehmet | 1:f60eafbf009a | 76 | |
| gmehmet | 1:f60eafbf009a | 77 | |
| gmehmet | 1:f60eafbf009a | 78 | // Default Initialization Parameters for INT_assignment |
| gmehmet | 1:f60eafbf009a | 79 | #define EN_ENINT_LOC 0x01 |
| gmehmet | 1:f60eafbf009a | 80 | #define EN_EOVF_LOC 0x00 |
| gmehmet | 1:f60eafbf009a | 81 | #define EN_FSTINT_LOC 0x00 |
| gmehmet | 1:f60eafbf009a | 82 | #define EN_DCLOFFINT_LOC 0x02 |
| gmehmet | 1:f60eafbf009a | 83 | #define EN_BINT_LOC 0x01 |
| gmehmet | 1:f60eafbf009a | 84 | #define EN_BOVF_LOC 0x00 |
| gmehmet | 1:f60eafbf009a | 85 | #define EN_BOVER_LOC 0x02 |
| gmehmet | 1:f60eafbf009a | 86 | #define EN_BUNDR_LOC 0x02 |
| gmehmet | 1:f60eafbf009a | 87 | #define EN_BCGMON_LOC 0x00 |
| gmehmet | 1:f60eafbf009a | 88 | #define EN_PINT_LOC 0x00 |
| gmehmet | 1:f60eafbf009a | 89 | #define EN_POVF_LOC 0x00 |
| gmehmet | 1:f60eafbf009a | 90 | #define EN_PEDGE_LOC 0x00 |
| gmehmet | 1:f60eafbf009a | 91 | #define EN_LONINT_LOC 0x00 |
| gmehmet | 1:f60eafbf009a | 92 | #define EN_RRINT_LOC 0x02 |
| gmehmet | 1:f60eafbf009a | 93 | #define EN_SAMP_LOC 0x00 |
| gmehmet | 1:f60eafbf009a | 94 | #define INTB_TYPE 0x03 |
| gmehmet | 1:f60eafbf009a | 95 | #define INT2B_TYPE 0x03 |
| gmehmet | 1:f60eafbf009a | 96 | |
| gmehmet | 1:f60eafbf009a | 97 | |
| gmehmet | 1:f60eafbf009a | 98 | |
| gmehmet | 1:f60eafbf009a | 99 | |
| gmehmet | 1:f60eafbf009a | 100 | #endif |