Library for MAX30101 SpO2 and heart rate sensor
Dependents: HeartRate HeartRate proj final_project_ee119 ... more
Diff: MAX30101.cpp
- Revision:
- 1:9e2a3b4a24c7
- Parent:
- 0:2d0c91de9279
- Child:
- 2:0db1f3bec727
--- a/MAX30101.cpp Thu Apr 13 23:23:36 2017 +0000 +++ b/MAX30101.cpp Thu Apr 13 23:46:22 2017 +0000 @@ -88,6 +88,111 @@ //***************************************************************************** +int32_t MAX30101::setFIFOConfiguration(const FIFO_Configuration_u config) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::getFIFOConfiguration(FIFO_Configuration_u &config) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::setModeConfiguration(const ModeConfiguration_u config) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::getModeConfiguration(ModeConfiguration_u &config) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::setSpO2Configuration(const SpO2Configuration_u config) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::getSpO2Configuration(SpO2Configuration_u &config) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::setLEDPulseAmplitude(Registers_e reg, const uint8_t amp) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::getLEDPulseAmplitude(Registers_e reg, uint8_t &) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::setMultiLEDModeControl(Registers_e reg, const ModeControlReg_u data) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::getMultiLEDModeControl(Registers_e reg, ModeControlReg_u &data) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::getDieTemperature(uint16_t &data) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::getDieTemperatureC(float &data) +{ + return -1; +} + + +//***************************************************************************** +float MAX30101::celsius2fahrenheit(float c) +{ + return 0.0F; +} + + +//***************************************************************************** +int32_t MAX30101::setProxIntThreshold(const uint8_t data) +{ + return -1; +} + + +//***************************************************************************** +int32_t MAX30101::getProxIntThreshold(uint8_t &data) +{ + return -1; +} + + +//***************************************************************************** int32_t MAX30101::writeRegister(Registers_e reg, uint8_t value) { char local_data[2] = {reg, value};