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
max30205_c.h@10:9c5dc1393570, 2019-04-17 (annotated)
- Committer:
- phonemacro
- Date:
- Wed Apr 17 21:13:54 2019 +0000
- Revision:
- 10:9c5dc1393570
- Parent:
- 9:d98e4a80a866
Updated comments
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
phonemacro | 9:d98e4a80a866 | 1 | /******************************************************************************* |
phonemacro | 9:d98e4a80a866 | 2 | * Copyright (C) 2019 Maxim Integrated Products, Inc., All Rights Reserved. |
phonemacro | 9:d98e4a80a866 | 3 | * |
phonemacro | 9:d98e4a80a866 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
phonemacro | 9:d98e4a80a866 | 5 | * copy of this software and associated documentation files (the "Software"), |
phonemacro | 9:d98e4a80a866 | 6 | * to deal in the Software without restriction, including without limitation |
phonemacro | 9:d98e4a80a866 | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
phonemacro | 9:d98e4a80a866 | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
phonemacro | 9:d98e4a80a866 | 9 | * Software is furnished to do so, subject to the following conditions: |
phonemacro | 9:d98e4a80a866 | 10 | * |
phonemacro | 9:d98e4a80a866 | 11 | * The above copyright notice and this permission notice shall be included |
phonemacro | 9:d98e4a80a866 | 12 | * in all copies or substantial portions of the Software. |
phonemacro | 9:d98e4a80a866 | 13 | * |
phonemacro | 9:d98e4a80a866 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
phonemacro | 9:d98e4a80a866 | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
phonemacro | 9:d98e4a80a866 | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
phonemacro | 9:d98e4a80a866 | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
phonemacro | 9:d98e4a80a866 | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
phonemacro | 9:d98e4a80a866 | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
phonemacro | 9:d98e4a80a866 | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
phonemacro | 9:d98e4a80a866 | 21 | * |
phonemacro | 9:d98e4a80a866 | 22 | * Except as contained in this notice, the name of Maxim Integrated |
phonemacro | 9:d98e4a80a866 | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
phonemacro | 9:d98e4a80a866 | 24 | * Products, Inc. Branding Policy. |
phonemacro | 9:d98e4a80a866 | 25 | * |
phonemacro | 9:d98e4a80a866 | 26 | * The mere transfer of this software does not imply any licenses |
phonemacro | 9:d98e4a80a866 | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
phonemacro | 9:d98e4a80a866 | 28 | * trademarks, maskwork rights, or any other form of intellectual |
phonemacro | 9:d98e4a80a866 | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
phonemacro | 9:d98e4a80a866 | 30 | * ownership rights. |
phonemacro | 9:d98e4a80a866 | 31 | ******************************************************************************* |
phonemacro | 9:d98e4a80a866 | 32 | * @file max30205_c.h |
phonemacro | 9:d98e4a80a866 | 33 | ******************************************************************************* |
phonemacro | 9:d98e4a80a866 | 34 | */ |
phonemacro | 9:d98e4a80a866 | 35 | #ifndef MAX30205_C_H |
phonemacro | 9:d98e4a80a866 | 36 | #define MAX30205_C_H |
phonemacro | 9:d98e4a80a866 | 37 | #include "mbed.h" |
phonemacro | 9:d98e4a80a866 | 38 | /*****************************************************************************/ |
phonemacro | 9:d98e4a80a866 | 39 | /* C header for MAX30205 driver */ |
phonemacro | 9:d98e4a80a866 | 40 | /*****************************************************************************/ |
phonemacro | 9:d98e4a80a866 | 41 | |
phonemacro | 9:d98e4a80a866 | 42 | int max30205_init(uint8_t slaveAddress); |
phonemacro | 9:d98e4a80a866 | 43 | |
phonemacro | 9:d98e4a80a866 | 44 | int max30205_read_cfg_reg(uint8_t *value, I2C &i2c_bus); |
phonemacro | 9:d98e4a80a866 | 45 | |
phonemacro | 9:d98e4a80a866 | 46 | int max30205_read_reg16(int16_t *value, char reg, I2C &i2c_bus); |
phonemacro | 9:d98e4a80a866 | 47 | |
phonemacro | 9:d98e4a80a866 | 48 | float max30205_read_reg_as_temperature(uint8_t reg, I2C &i2c_bus); |
phonemacro | 9:d98e4a80a866 | 49 | |
phonemacro | 9:d98e4a80a866 | 50 | int max30205_write_cfg_reg(uint8_t cfg, I2C &i2c_bus); |
phonemacro | 9:d98e4a80a866 | 51 | |
phonemacro | 9:d98e4a80a866 | 52 | int max30205_write_trip_low_thyst(float temperature, I2C &i2c_bus); |
phonemacro | 9:d98e4a80a866 | 53 | |
phonemacro | 9:d98e4a80a866 | 54 | int max30205_write_trip_high_tos(float temperature, I2C &i2c_bus); |
phonemacro | 9:d98e4a80a866 | 55 | |
phonemacro | 9:d98e4a80a866 | 56 | float max30205_celsius_to_fahrenheit(float temp_c); |
phonemacro | 9:d98e4a80a866 | 57 | |
phonemacro | 9:d98e4a80a866 | 58 | #endif/* MAX30205_C_H */ |