Roy Sandberg / Mbed 2 deprecated BLE_ECG

Dependencies:   BLE_API Queue mbed nRF51822

Fork of BLE_HeartRate by Bluetooth Low Energy

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers bdac.h Source File

bdac.h

00001 /*****************************************************************************
00002 FILE:  bdac.h
00003 AUTHOR: Patrick S. Hamilton
00004 REVISED:    9/25/2001
00005   ___________________________________________________________________________
00006 
00007 bdac.h: Beat detection and classification parameter definitions.
00008 Copywrite (C) 2001 Patrick S. Hamilton
00009 
00010 This file is free software; you can redistribute it and/or modify it under
00011 the terms of the GNU Library General Public License as published by the Free
00012 Software Foundation; either version 2 of the License, or (at your option) any
00013 later version.
00014 
00015 This software is distributed in the hope that it will be useful, but WITHOUT ANY
00016 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
00017 PARTICULAR PURPOSE.  See the GNU Library General Public License for more
00018 details.
00019 
00020 You should have received a copy of the GNU Library General Public License along
00021 with this library; if not, write to the Free Software Foundation, Inc., 59
00022 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00023 
00024 You may contact the author by e-mail (pat@eplimited.edu) or postal mail
00025 (Patrick Hamilton, E.P. Limited, 35 Medford St., Suite 204 Somerville,
00026 MA 02143 USA).  For updates to this software, please visit our website
00027 (http://www.eplimited.com).
00028 ******************************************************************************/
00029 // was 100
00030 #define BEAT_SAMPLE_RATE    125
00031 
00032 #define BEAT_MS_PER_SAMPLE  ( (double) 1000/ (double) BEAT_SAMPLE_RATE)
00033 
00034 #define BEAT_MS10       ((int) (10/BEAT_MS_PER_SAMPLE + 0.5))
00035 #define BEAT_MS20       ((int) (20/BEAT_MS_PER_SAMPLE + 0.5))
00036 #define BEAT_MS40       ((int) (40/BEAT_MS_PER_SAMPLE + 0.5))
00037 #define BEAT_MS50       ((int) (50/BEAT_MS_PER_SAMPLE + 0.5))
00038 #define BEAT_MS60       ((int) (60/BEAT_MS_PER_SAMPLE + 0.5))
00039 #define BEAT_MS70       ((int) (70/BEAT_MS_PER_SAMPLE + 0.5))
00040 #define BEAT_MS80       ((int) (80/BEAT_MS_PER_SAMPLE + 0.5))
00041 #define BEAT_MS90       ((int) (90/BEAT_MS_PER_SAMPLE + 0.5))
00042 #define BEAT_MS100  ((int) (100/BEAT_MS_PER_SAMPLE + 0.5))
00043 #define BEAT_MS110  ((int) (110/BEAT_MS_PER_SAMPLE + 0.5))
00044 #define BEAT_MS130  ((int) (130/BEAT_MS_PER_SAMPLE + 0.5))
00045 #define BEAT_MS140  ((int) (140/BEAT_MS_PER_SAMPLE + 0.5))
00046 #define BEAT_MS150  ((int) (150/BEAT_MS_PER_SAMPLE + 0.5))
00047 #define BEAT_MS250  ((int) (250/BEAT_MS_PER_SAMPLE + 0.5))
00048 #define BEAT_MS280  ((int) (280/BEAT_MS_PER_SAMPLE + 0.5))
00049 #define BEAT_MS300  ((int) (300/BEAT_MS_PER_SAMPLE + 0.5))
00050 #define BEAT_MS350  ((int) (350/BEAT_MS_PER_SAMPLE + 0.5))
00051 #define BEAT_MS400  ((int) (400/BEAT_MS_PER_SAMPLE + 0.5))
00052 #define BEAT_MS1000 BEAT_SAMPLE_RATE
00053 
00054 #define BEATLGTH    BEAT_MS1000
00055 #define MAXTYPES 8
00056 #define FIDMARK BEAT_MS400
00057