20200716 read Status Register each second

Dependencies:   SDFileSystem mbed-os-example-ble-GattServer max32630fthr

Committer:
aureliocarella
Date:
Thu Jul 16 14:59:04 2020 +0000
Revision:
21:51e162c130a9
20200716

Who changed what in which revision?

UserRevisionLine numberNew contents of line
aureliocarella 21:51e162c130a9 1 /*******************************************************************************
aureliocarella 21:51e162c130a9 2 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
aureliocarella 21:51e162c130a9 3 *
aureliocarella 21:51e162c130a9 4 * Permission is hereby granted, free of charge, to any person obtaining a
aureliocarella 21:51e162c130a9 5 * copy of this software and associated documentation files (the "Software"),
aureliocarella 21:51e162c130a9 6 * to deal in the Software without restriction, including without limitation
aureliocarella 21:51e162c130a9 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
aureliocarella 21:51e162c130a9 8 * and/or sell copies of the Software, and to permit persons to whom the
aureliocarella 21:51e162c130a9 9 * Software is furnished to do so, subject to the following conditions:
aureliocarella 21:51e162c130a9 10 *
aureliocarella 21:51e162c130a9 11 * The above copyright notice and this permission notice shall be included
aureliocarella 21:51e162c130a9 12 * in all copies or substantial portions of the Software.
aureliocarella 21:51e162c130a9 13 *
aureliocarella 21:51e162c130a9 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
aureliocarella 21:51e162c130a9 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
aureliocarella 21:51e162c130a9 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
aureliocarella 21:51e162c130a9 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
aureliocarella 21:51e162c130a9 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
aureliocarella 21:51e162c130a9 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
aureliocarella 21:51e162c130a9 20 * OTHER DEALINGS IN THE SOFTWARE.
aureliocarella 21:51e162c130a9 21 *
aureliocarella 21:51e162c130a9 22 * Except as contained in this notice, the name of Maxim Integrated
aureliocarella 21:51e162c130a9 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
aureliocarella 21:51e162c130a9 24 * Products, Inc. Branding Policy.
aureliocarella 21:51e162c130a9 25 *
aureliocarella 21:51e162c130a9 26 * The mere transfer of this software does not imply any licenses
aureliocarella 21:51e162c130a9 27 * of trade secrets, proprietary technology, copyrights, patents,
aureliocarella 21:51e162c130a9 28 * trademarks, maskwork rights, or any other form of intellectual
aureliocarella 21:51e162c130a9 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
aureliocarella 21:51e162c130a9 30 * ownership rights.
aureliocarella 21:51e162c130a9 31 *******************************************************************************
aureliocarella 21:51e162c130a9 32 */
aureliocarella 21:51e162c130a9 33 #ifndef MAX30001_HELPER_H_
aureliocarella 21:51e162c130a9 34 #define MAX30001_HELPER_H_
aureliocarella 21:51e162c130a9 35
aureliocarella 21:51e162c130a9 36 #include "mbed.h"
aureliocarella 21:51e162c130a9 37
aureliocarella 21:51e162c130a9 38 typedef enum eFlags {
aureliocarella 21:51e162c130a9 39 eStreaming_ECG,
aureliocarella 21:51e162c130a9 40 eStreaming_PACE,
aureliocarella 21:51e162c130a9 41 eStreaming_BIOZ,
aureliocarella 21:51e162c130a9 42 eStreaming_RtoR
aureliocarella 21:51e162c130a9 43 } eFlags;
aureliocarella 21:51e162c130a9 44
aureliocarella 21:51e162c130a9 45 int MAX30001_Helper_IsStreaming(eFlags flag);
aureliocarella 21:51e162c130a9 46 void MAX30001_Helper_SetStreamingFlag(eFlags flag, uint8_t state);
aureliocarella 21:51e162c130a9 47 void MAX30001_Helper_Stop(void);
aureliocarella 21:51e162c130a9 48 void MAX30001_Helper_ClearStreamingFlags(void);
aureliocarella 21:51e162c130a9 49 int MAX30001_AnyStreamingSet(void);
aureliocarella 21:51e162c130a9 50 void MAX30001_Helper_Debug_ShowStreamFlags(void);
aureliocarella 21:51e162c130a9 51 void MAX30001_Helper_StartSync(void);
aureliocarella 21:51e162c130a9 52 void MAX30001_Helper_SetupInterrupts(void);
aureliocarella 21:51e162c130a9 53 uint8_t *MAX30001_Helper_getVersion(void);
aureliocarella 21:51e162c130a9 54
aureliocarella 21:51e162c130a9 55 #endif /* MAX30001_HELPER_H_ */
aureliocarella 21:51e162c130a9 56