Host software for the MAX30001 ECG, PACE, biopotential, bioimpedance, R-to-R peak sensor. Hosted on the MAX32630FTHR.

Dependencies:   SDFileSystem USBDevice max32630fthr

Fork of MAX30001 SYS EvKit by Emre Eken

MAX30001-MAX32630FTHR ECG Evaluation System

The MAX30001 EVKIT SYS-MBED Evaluation System (EV System) is used to evaluates the MAX30001 sensor, which is an ECG (electrocardiogram), biopotential and bioimpedance analog front end solution for wearable applications. The full evaluation system consists of the MAX32630FTHR board, MAX30001 EVKIT sensor board and the evaluation software. The evaluation kit features ECG, PACE, R-to-R (R-peak timing) detection; bioimpedance (BioZ) AFE; and raw data logging.

The MAX30001 EVKIT evaluation system is assembled, tested and contains the necessary circuitry and connections to evaluate the MAX30001 ECG sensor.

When evaluated as an evaluation system, the MAX32630FTHR board provides the necessary logic rails, master clock, SPI, USB-to-Serial interfaces that are needed to evaluate the MAX30001 sensor board. MAX32630FTHR can be used as an independent development platform.

Communication between the PC and the MAX32630FTHR board is facilitated by a Windows 7, Windows 8 and Windows 10 compatible software that provides a simple and intuitive graphical user interface (GUI).

For more information, visit the wiki pages by clicking the wiki tab above and MAX30001EVSYS product page.

C++ source code, library for the MAX30001 ECG drivers are in the links at the bottom of this page. The sample code includes the ability to log data to the SD card of the MAX32630FTHR.

MAX30001 EVKIT Pinout Connections

/media/uploads/EmreE/max30001_sensor_board_connector_pinout.png

Where to Buy

MAX30001EVSYS-Buy

Committer:
Emre.Eken@IST-LT-35101.maxim-ic.internal
Date:
Thu Apr 05 10:53:26 2018 +0300
Revision:
0:8e4630a71eb1
mbed os 5.8.1 compatible

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 1 /*******************************************************************************
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 2 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 3 *
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 4 * Permission is hereby granted, free of charge, to any person obtaining a
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 5 * copy of this software and associated documentation files (the "Software"),
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 6 * to deal in the Software without restriction, including without limitation
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 8 * and/or sell copies of the Software, and to permit persons to whom the
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 9 * Software is furnished to do so, subject to the following conditions:
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 10 *
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 11 * The above copyright notice and this permission notice shall be included
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 12 * in all copies or substantial portions of the Software.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 13 *
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 20 * OTHER DEALINGS IN THE SOFTWARE.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 21 *
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 22 * Except as contained in this notice, the name of Maxim Integrated
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 24 * Products, Inc. Branding Policy.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 25 *
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 26 * The mere transfer of this software does not imply any licenses
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 27 * of trade secrets, proprietary technology, copyrights, patents,
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 28 * trademarks, maskwork rights, or any other form of intellectual
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 30 * ownership rights.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 31 *******************************************************************************
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 32 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 33 #ifndef _RPCDECLARATIONS_H_
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 34 #define _RPCDECLARATIONS_H_
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 35
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 36 /// define the parts of a RPC. ObjectName, MethodName and function
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 37 struct RPC_registeredProcedure {
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 38 const char *objectName;
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 39 const char *methodName;
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 40 //enum eArgType argTypes[4];
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 41 int (*func)(char args[32][32], char results[32][32]);
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 42 struct RPC_registeredProcedure *next;
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 43 };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 44
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 45 /// used to keep track of the head of the list and the end of a list
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 46 struct RPC_Object {
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 47 struct RPC_registeredProcedure *head;
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 48 struct RPC_registeredProcedure *last;
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 49 };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 50
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 51 //example /I2c/WriteRead 1 A0 3 11 22 33 2
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 52 #define System_NAME "System"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 53
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 54 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 55 * @brief /System/ReadVer
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 56 * @details Returns the version string of the FW that is currently running
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 57 * @details Example: /System/ReadVer
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 58 * @details The command returns a version string similar to this: "HSP FW Version 2.0.1f 8/23/16"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 59 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 60 struct RPC_registeredProcedure Define_System_ReadVer = { System_NAME, "ReadVer", System_ReadVer };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 61 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 62 * @brief /System/ReadBuildTime
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 63 * @details Returns the build string of the FW that is currently running, this is the time and date that the firmware was built
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 64 * @details Example: /System/ReadBuildTime
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 65 * @details The command returns a build string similar to this: "Build Time: Fri Jul 1 15:48:31 2016"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 66 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 67 struct RPC_registeredProcedure Define_System_ReadBuildTime = { System_NAME, "ReadBuildTime", System_ReadBuildTime };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 68
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 69 #define MAX30001_NAME "MAX30001"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 70 #define MAX30003_NAME "MAX30003"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 71
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 72 #define MAX31725_NAME "MAX31725"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 73 #define MAX30205_NAME "MAX30205"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 74
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 75 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 76 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 77 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 78 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 79 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 80 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 81 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 82 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 83 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 84 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 85 struct RPC_registeredProcedure Define_MAX30001_WriteReg = { MAX30001_NAME, "WriteReg", MAX30001_WriteReg };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 86 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 87 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 88 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 89 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 90 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 91 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 92 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 93 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 94 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 95 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 96 struct RPC_registeredProcedure Define_MAX30001_ReadReg = { MAX30001_NAME, "ReadReg", MAX30001_ReadReg };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 97 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 98 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 99 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 100 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 101 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 102 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 103 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 104 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 105 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 106 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 107 struct RPC_registeredProcedure Define_MAX30001_Start = { MAX30001_NAME, "Start", MAX30001_Start };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 108 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 109 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 110 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 111 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 112 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 113 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 114 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 115 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 116 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 117 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 118 struct RPC_registeredProcedure Define_MAX30001_Stop = { MAX30001_NAME, "Stop", MAX30001_Stop };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 119 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 120 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 121 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 122 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 123 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 124 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 125 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 126 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 127 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 128 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 129 struct RPC_registeredProcedure Define_MAX30001_Rbias_FMSTR_Init = { MAX30001_NAME, "Rbias_FMSTR_Init", MAX30001_Rbias_FMSTR_Init };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 130 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 131 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 132 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 133 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 134 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 135 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 136 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 137 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 138 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 139 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 140 struct RPC_registeredProcedure Define_MAX30001_CAL_InitStart = { MAX30001_NAME, "CAL_InitStart", MAX30001_CAL_InitStart };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 141 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 142 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 143 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 144 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 145 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 146 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 147 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 148 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 149 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 150 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 151 struct RPC_registeredProcedure Define_MAX30001_ECG_InitStart = { MAX30001_NAME, "ECG_InitStart", MAX30001_ECG_InitStart };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 152 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 153 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 154 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 155 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 156 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 157 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 158 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 159 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 160 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 161 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 162 struct RPC_registeredProcedure Define_MAX30001_ECGFast_Init = { MAX30001_NAME, "ECGFast_Init", MAX30001_ECGFast_Init };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 163 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 164 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 165 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 166 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 167 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 168 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 169 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 170 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 171 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 172 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 173 struct RPC_registeredProcedure Define_MAX30001_PACE_InitStart = { MAX30001_NAME, "PACE_InitStart", MAX30001_PACE_InitStart };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 174 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 175 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 176 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 177 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 178 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 179 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 180 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 181 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 182 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 183 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 184 struct RPC_registeredProcedure Define_MAX30001_BIOZ_InitStart = { MAX30001_NAME, "BIOZ_InitStart", MAX30001_BIOZ_InitStart };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 185 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 186 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 187 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 188 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 189 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 190 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 191 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 192 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 193 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 194 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 195 struct RPC_registeredProcedure Define_MAX30001_RtoR_InitStart = { MAX30001_NAME, "RtoR_InitStart", MAX30001_RtoR_InitStart };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 196 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 197 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 198 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 199 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 200 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 201 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 202 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 203 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 204 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 205 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 206 struct RPC_registeredProcedure Define_MAX30001_Stop_ECG = { MAX30001_NAME, "Stop_ECG", MAX30001_Stop_ECG };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 207 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 208 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 209 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 210 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 211 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 212 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 213 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 214 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 215 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 216 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 217 struct RPC_registeredProcedure Define_MAX30001_Stop_PACE = { MAX30001_NAME, "Stop_PACE", MAX30001_Stop_PACE };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 218 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 219 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 220 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 221 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 222 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 223 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 224 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 225 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 226 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 227 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 228 struct RPC_registeredProcedure Define_MAX30001_Stop_BIOZ = { MAX30001_NAME, "Stop_BIOZ", MAX30001_Stop_BIOZ };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 229 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 230 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 231 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 232 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 233 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 234 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 235 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 236 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 237 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 238 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 239 struct RPC_registeredProcedure Define_MAX30001_Stop_RtoR = { MAX30001_NAME, "Stop_RtoR", MAX30001_Stop_RtoR };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 240 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 241 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 242 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 243 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 244 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 245 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 246 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 247 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 248 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 249 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 250 struct RPC_registeredProcedure Define_MAX30001_Stop_Cal = { MAX30001_NAME, "Stop_Cal", MAX30001_Stop_Cal };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 251 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 252 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 253 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 254 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 255 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 256 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 257 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 258 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 259 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 260 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 261 struct RPC_registeredProcedure Define_MAX30001_Enable_ECG_LeadON = { MAX30001_NAME, "Enable_ECG_LeadON", MAX30001_Enable_ECG_LeadON };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 262 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 263 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 264 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 265 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 266 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 267 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 268 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 269 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 270 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 271 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 272 struct RPC_registeredProcedure Define_MAX30001_Enable_BIOZ_LeadON = { MAX30001_NAME, "Enable_BIOZ_LeadON", MAX30001_Enable_BIOZ_LeadON };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 273 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 274 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 275 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 276 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 277 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 278 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 279 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 280 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 281 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 282 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 283 struct RPC_registeredProcedure Define_MAX30001_Read_LeadON = { MAX30001_NAME, "Read_LeadON", MAX30001_Read_LeadON };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 284 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 285 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 286 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 287 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 288 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 289 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 290 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 291 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 292 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 293 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 294 struct RPC_registeredProcedure Define_MAX30001_StartTest = { MAX30001_NAME, "StartTest", MAX30001_StartTest };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 295 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 296 * @brief /MAX30101/SpO2mode_init fifo_waterlevel_mark sample_avg sample_rate pulse_width red_led_current ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 297 * @details This function sets up for the SpO2 mode.
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 298 * @param fifo_waterlevel_mark
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 299 * @param sample_avg
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 300 * @param sample_rate
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 301 * @param pulse_width
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 302 * @param red_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 303 * @param ir_led_current
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 304 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 305 struct RPC_registeredProcedure Define_MAX30001_INT_assignment = { MAX30001_NAME, "INT_assignment", MAX30001_INT_assignment };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 306
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 307 #define LOGGING_NAME "Logging"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 308 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 309 * @brief /Logging/StartMissionDefine
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 310 * @details A command to send when you are starting to define a mission
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 311 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 312 struct RPC_registeredProcedure Define_Logging_StartMissionDefine = { LOGGING_NAME, "StartMissionDefine", Logging_RPC_StartMissionDefine };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 313 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 314 * @brief /Logging/AppendMissionCmd missionString
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 315 * @details Specify a RPC command that is part of a mission
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 316 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 317 struct RPC_registeredProcedure Define_Logging_AppendMissionCmd = { LOGGING_NAME, "AppendMissionCmd", Logging_RPC_AppendMissionCmd };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 318 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 319 * @brief /Logging/EndMissionDefine
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 320 * @details RPC command that indicated the end of defining a mission
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 321 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 322 struct RPC_registeredProcedure Define_Logging_EndMissionDefine = { LOGGING_NAME, "EndMissionDefine", Logging_RPC_EndMissionDefine };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 323 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 324 * @brief /Logging/WriteMission
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 325 * @details Write the described mission to flash
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 326 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 327 struct RPC_registeredProcedure Define_Logging_WriteMission = { LOGGING_NAME, "WriteMission", Logging_RPC_WriteMission };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 328 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 329 * @brief /Logging/ReadMission
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 330 * @details Read the mission from flash
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 331 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 332 struct RPC_registeredProcedure Define_Logging_ReadMission = { LOGGING_NAME, "ReadMission", Logging_RPC_ReadMission };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 333 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 334 * @brief /Logging/EraseMission
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 335 * @details Erase the mission in flash
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 336 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 337 struct RPC_registeredProcedure Define_Logging_EraseMission = { LOGGING_NAME, "EraseMission", Logging_RPC_EraseMission };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 338 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 339 * @brief /Logging/EraseWrittenSectors
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 340 * @details Erase the datalog in flash, this erases all of the datalog that has been written to the flash
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 341 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 342 struct RPC_registeredProcedure Define_Logging_EraseWrittenSectors = { LOGGING_NAME, "EraseWrittenSectors", Logging_EraseWrittenSectors };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 343 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 344 * @brief /Logging/StartLoggingUsb
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 345 * @details Start streaming data through USB
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 346 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 347 struct RPC_registeredProcedure Define_Logging_StartLoggingUsb = { LOGGING_NAME, "StartLoggingUsb", Logging_StartLoggingUsb };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 348 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 349 * @brief /Logging/StartLoggingFlash
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 350 * @details Start logging data to flash
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 351 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 352 struct RPC_registeredProcedure Define_Logging_StartLoggingFlash = { LOGGING_NAME, "StartLoggingFlash", Logging_StartLoggingFlash };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 353 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 354 * @brief /Logging/GetLastWrittenPage
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 355 * @details Returns the last page that has been written to flash, this call searchs until it finds an empty flash page
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 356 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 357 struct RPC_registeredProcedure Define_Logging_GetLastWrittenPage = { LOGGING_NAME, "GetLastWrittenPage", Logging_GetLastWrittenPage };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 358 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 359 * @brief /Logging/Start
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 360 * @details Starts a datalogging session into flash, allows the ability to start datalogging via RPC call
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 361 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 362 struct RPC_registeredProcedure Define_Logging_Start = { LOGGING_NAME, "Start", Logging_Start };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 363
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 364 #define LED_NAME "Led"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 365 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 366 * @brief /Led/On
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 367 * @details Turn on the HSP onboard LED
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 368 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 369 struct RPC_registeredProcedure Define_Led_On = { LED_NAME, "On", Led_On };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 370 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 371 * @brief /Led/Off
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 372 * @details Turn off the HSP onboard LED
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 373 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 374 struct RPC_registeredProcedure Define_Led_Off = { LED_NAME, "Off", Led_Off };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 375 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 376 * @brief /Led/Blink mS
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 377 * @details Start blinking the HSP onboard LED
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 378 * @param mS Blink using a mS period
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 379 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 380 struct RPC_registeredProcedure Define_Led_BlinkHz = { LED_NAME, "Blink", Led_BlinkHz };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 381 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 382 * @brief /Led/Pattern pattern
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 383 * @details Rotate a 32-bit pattern through the LED so that specific blink patterns can be obtained
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 384 * @param pattern A 32-bit pattern to rotate through
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 385 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 386 struct RPC_registeredProcedure Define_Led_BlinkPattern = { LED_NAME, "Pattern", Led_BlinkPattern };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 387
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 388 #define S25FS512_NAME "S25FS512"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 389 #define SDCARD_NAME "SDCard"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 390 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 391 * @brief /S25FS512/ReadId
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 392 * @details Rotate a 32-bit pattern through the LED so that specific blink patterns can be obtained
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 393 * @param pattern A 32-bit pattern to rotate through
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 394 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 395 struct RPC_registeredProcedure Define_S25FS512_ReadId = { S25FS512_NAME, "ReadId", S25FS512_ReadId };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 396 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 397 * @brief /S25FS512/ReadPagesBinary startPage endPage
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 398 * @details Read a page from flash, return the data in binary (non-ascii)
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 399 * @param startPage The Starting page to read from
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 400 * @param endPage The last page to read from
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 401 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 402 struct RPC_registeredProcedure Define_S25FS512_ReadPagesBinary = { S25FS512_NAME, "ReadPagesBinary", S25FS512_ReadPagesBinary };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 403 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 404 * @brief /S25FS512/Reset
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 405 * @details Issue a soft reset to the flash device
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 406 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 407 struct RPC_registeredProcedure Define_S25FS512_Reset = { S25FS512_NAME, "Reset", S25FS512_Reset };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 408 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 409 * @brief /S25FS512/EnableHWReset
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 410 * @details Enable HW resets to the device
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 411 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 412 struct RPC_registeredProcedure Define_S25FS512_EnableHWReset = { S25FS512_NAME, "EnableHWReset", S25FS512_EnableHWReset };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 413 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 414 * @brief /S25FS512/SpiWriteRead
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 415 * @details Write and read SPI to the flash device using Quad SPI
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 416 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 417 struct RPC_registeredProcedure Define_S25FS512_SpiWriteRead = { S25FS512_NAME, "SpiWriteRead", S25FS512_SpiWriteRead };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 418 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 419 * @brief /S25FS512/SpiWriteRead4Wire
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 420 * @details Write and read SPI to the flash device using 4 wire
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 421 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 422 struct RPC_registeredProcedure Define_S25FS512_SpiWriteRead4Wire = { S25FS512_NAME, "SpiWriteRead4Wire", S25FS512_SpiWriteRead4Wire };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 423 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 424 * @brief /SDCard/IsReady
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 425 * @details Check whether SD Card File System is accessible
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 426 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 427 struct RPC_registeredProcedure Define_SDCard_IsReady = { SDCARD_NAME, "IsReady", SDCard_IsReady };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 428
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 429
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 430 #define TESTING_NAME "Testing"
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 431 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 432 * @brief /Testing/Test_S25FS512
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 433 * @details Start a testing sequence for this device, returns PASS and FAIL strings and detailed results of the test
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 434 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 435 struct RPC_registeredProcedure Define_Testing_Test_S25FS512 = { TESTING_NAME, "Test_S25FS512", Test_S25FS512};
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 436
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 437 /**
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 438 * @brief /Testing/Test_MAX30001
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 439 * @details Start a testing sequence for this device, returns PASS and FAIL strings and detailed results of the test
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 440 */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 441 struct RPC_registeredProcedure Define_Testing_Test_MAX30001 = { TESTING_NAME, "Test_MAX30001", Test_MAX30001 };
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 442
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 443 #endif /* _RPCDECLARATIONS_H_ */
Emre.Eken@IST-LT-35101.maxim-ic.internal 0:8e4630a71eb1 444