Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: max32630fthr USBDevice
Fork of MAXREFDES220_HEART_RATE_MONITOR by
DSInterface Class Reference
DSInterface is Maxim's DeviceStudio Interface class. More...
#include <DSInterface.h>
Public Member Functions | |
| DSInterface (USBSerial *USB) | |
| DSInterface constructor. | |
| virtual | ~DSInterface () |
| DSInterface destructor. | |
| void | add_sensor_comm (SensorComm *s) |
| Add SensorComm for DSInterface to pass commands to. | |
| void | build_command (char ch) |
| Command builder from i/o device. | |
| void | data_report_execute () |
| Prints latest sensor data to USB stream. | |
| void | set_fw_version (const char *fw_version) |
| Set the fw version which DSInterface will replay with for "get_device_info" command. | |
| void | set_fw_platform (const char *fw_platform) |
| Set the fw platform which DSInterface will replay with for "get_device_info" command. | |
| void | enable_console_interface () |
| Enable data output on the console interface (USB) | |
Protected Member Functions | |
| void | parse_command () |
| Parses DeviceStudio commands. | |
Detailed Description
DSInterface is Maxim's DeviceStudio Interface class.
Definition at line 59 of file DSInterface.h.
Constructor & Destructor Documentation
| DSInterface | ( | USBSerial * | USB ) |
DSInterface constructor.
- Parameters:
-
[in] fw_version Firmware version number. [in] fw_platform Firmware platform name. [in] USB Pointer to USBSerial device
Definition at line 70 of file DSInterface.cpp.
| ~DSInterface | ( | ) | [virtual] |
DSInterface destructor.
Definition at line 84 of file DSInterface.cpp.
Member Function Documentation
| void add_sensor_comm | ( | SensorComm * | s ) |
Add SensorComm for DSInterface to pass commands to.
- Parameters:
-
[in] s SensorComm instance to handle sensor commands.
Definition at line 88 of file DSInterface.cpp.
| void build_command | ( | char | ch ) |
Command builder from i/o device.
Reads character and builds command from DeviceStudio commands.
- Parameters:
-
[in] ch Input character from i/o device.
Definition at line 99 of file DSInterface.cpp.
| void data_report_execute | ( | ) |
Prints latest sensor data to USB stream.
Should be called on every pass thorugh the main loop in main.cpp
Definition at line 276 of file DSInterface.cpp.
| void enable_console_interface | ( | ) |
Enable data output on the console interface (USB)
Definition at line 94 of file DSInterface.cpp.
| void parse_command | ( | ) | [protected] |
Parses DeviceStudio commands.
Parses and executes commands. Prints return code to i/o device.
Definition at line 131 of file DSInterface.cpp.
| void set_fw_platform | ( | const char * | fw_platform ) |
Set the fw platform which DSInterface will replay with for "get_device_info" command.
- Parameters:
-
[in] fw_platform Firmware platform name.
Definition at line 313 of file DSInterface.cpp.
| void set_fw_version | ( | const char * | fw_version ) |
Set the fw version which DSInterface will replay with for "get_device_info" command.
- Parameters:
-
[in] fw_version Firmware version number.
Definition at line 307 of file DSInterface.cpp.
Generated on Tue Jul 12 2022 10:59:32 by
1.7.2

Heart Rate SpO2 Algorithm EvKit Health Monitor Development System Board MAXREFDES220