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.
Dependents: MAX_IOT_KIT MAX30003WING_Demo_QRS_RK_Thread MAX30003WING_monitorhealth_beta_test1_ChannelID_5172021 MAX30003WING_monitorhealth_beta_test1_2ChannelID_5192021_copy ... more
MAX30003 Class Reference
Library for MAX30003
The MAX30003 is a complete, biopotential, analog frontend solution for wearable applications.
More...
#include <MAX30003.h>
Data Structures | |
| union | CalConfiguration_u |
| Cal Configuration bits. More... | |
| union | ECGConfiguration_u |
| ECG Configuration bits. More... | |
| union | EnableInterrupts_u |
| Enable Interrupt registers bits. More... | |
| union | GeneralConfiguration_u |
| General Configuration bits. More... | |
| union | ManageDynamicModes_u |
| Manage Dynamic Modes register bits. More... | |
| union | ManageInterrupts_u |
| Manage Interrupt register bits. More... | |
| union | MuxConfiguration_u |
| Mux Configuration bits. More... | |
| union | RtoR1Configuration_u |
| RtoR1 Configuration bits. More... | |
| union | RtoR2Configuration_u |
| RtoR2 Configuration bits. More... | |
| union | Status_u |
| Status register bits. More... | |
Public Types | |
| enum | Registers_e |
MAX30003 Registers. More... | |
Public Member Functions | |
| MAX30003 (SPI &spiBus, PinName cs) | |
| MAX30003 Constructor. | |
| ~MAX30003 () | |
| MAX30003 Destructor. | |
| uint32_t | readRegister (const Registers_e reg) |
| Read given register. | |
| void | writeRegister (const Registers_e reg, const uint32_t data) |
| Write given register. | |
Detailed Description
Library for MAX30003
The MAX30003 is a complete, biopotential, analog frontend solution for wearable applications.
It offers high performance for clinical and fitness applications, with ultra-low power for long battery life. The MAX30003 is a single biopotential channel providing ECG waveforms and heart rate detection.
#include "mbed.h" #include "max32630fthr.h" #include "MAX30003.h" MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3); int main(void) { DigitalOut rLed(LED1, 1); DigitalOut gLed(LED2, 1); Serial pc(USBTX, USBRX); pc.baud(115200); SPI spiBus(SPI2_MOSI, SPI2_MISO, SPI2_SCK); MAX30003 ecgAfe(spiBus, P5_3); while(1) { gLed = !gLed; wait(0.1); } }
Definition at line 75 of file MAX30003.h.
Member Enumeration Documentation
| enum Registers_e |
MAX30003 Registers.
Definition at line 80 of file MAX30003.h.
Constructor & Destructor Documentation
| MAX30003 | ( | SPI & | spiBus, |
| PinName | cs | ||
| ) |
MAX30003 Constructor.
- Parameters:
-
spiBus - Reference to spi interface cs - Pin used for chip select
Definition at line 39 of file MAX30003.cpp.
| ~MAX30003 | ( | ) |
MAX30003 Destructor.
Definition at line 46 of file MAX30003.cpp.
Member Function Documentation
| uint32_t readRegister | ( | const Registers_e | reg ) |
Read given register.
On Entry:
- Parameters:
-
[in] reg - Register to read
On Exit:
- Returns:
- Read data
Definition at line 52 of file MAX30003.cpp.
| void writeRegister | ( | const Registers_e | reg, |
| const uint32_t | data | ||
| ) |
Write given register.
On Entry:
- Parameters:
-
[in] reg - Register to write [in] data - Data to write
- Returns:
- None
Definition at line 67 of file MAX30003.cpp.
Generated on Tue Jul 12 2022 16:35:28 by
1.7.2