Maxim Integrated MAX30205 C, C++ source code driver software: MAX30205 is accurate to +-0.1°C over the range of 37.0°C to 39.0°C. One-shot, shutdown modes are available for reduced power usage. Thermostat thresholds allow for temperature hysteresis or for alarm settings. The MAX30205 is available in a compact 3x3 mm, 8-pin TDFN package. Operating supply voltage range is 2.7V to 3.3V. Typical applications are for clinical digital thermometers, thermostats with hysteresis, and temperature alarms.
Dependents: MAX30205_Human_Body_Temperature_Sensor
Revision 8:2aeb45dd2bb9, committed 2017-07-27
- Comitter:
- j3
- Date:
- Thu Jul 27 22:49:16 2017 +0000
- Parent:
- 7:f005887f21e7
- Child:
- 9:d98e4a80a866
- Commit message:
- Updated lib to comply with mbed non-copyable
Changed in this revision
| MAX30205.cpp | Show annotated file Show diff for this revision Revisions of this file |
| MAX30205.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MAX30205.cpp Thu May 18 20:50:39 2017 +0000
+++ b/MAX30205.cpp Thu Jul 27 22:49:16 2017 +0000
@@ -36,14 +36,6 @@
//******************************************************************************
-MAX30205::MAX30205(PinName sda, PinName scl, uint8_t slaveAddress):
-m_i2c(sda, scl), m_writeAddress(slaveAddress << 1),
-m_readAddress((slaveAddress << 1) | 1)
-{
-}
-
-
-//******************************************************************************
MAX30205::MAX30205(I2C &i2c, uint8_t slaveAddress):
m_i2c(i2c), m_writeAddress(slaveAddress << 1),
m_readAddress((slaveAddress << 1) | 1)
--- a/MAX30205.h Thu May 18 20:50:39 2017 +0000
+++ b/MAX30205.h Thu Jul 27 22:49:16 2017 +0000
@@ -92,14 +92,6 @@
uint8_t one_shot : 1;
}bits;
};
-
- /**
- * @brief Constructor using I2C PinNames
- * @param sda - Pinname for sda
- * @param scl - Pinname for scl
- * @param slaveAddress - 7-bit I2C address
- */
- MAX30205(PinName sda, PinName scl, uint8_t slaveAddress);
/**
* @brief Constructor using reference to I2C object
@@ -194,7 +186,7 @@
private:
/// I2C object
- I2C m_i2c;
+ I2C & m_i2c;
/// Device slave addresses
uint8_t m_writeAddress, m_readAddress;
};