C, C++ source code driver software for the Maxim Integrated MAX31725, MAX31726 thermostat : The MAX31725, MAX31726 temperature sensors provides temperature measurements with an accuracy of up to +-0.5°C. Extended format allows for high temperature readings up to 150°C. The MAX31725 can operate in a low powered mode by utilizing the shutdown and one-shot mode. MAX31725  supports two-wire serial, I2C bus communications in an 8-pin TQDFN 3x3 mm package.

Dependents:   MAX31725_High_Temperature_Accurate_IC

Committer:
phonemacro
Date:
Wed Apr 17 21:28:29 2019 +0000
Revision:
24:b4fdbbe79036
Parent:
20:c9805b01e814
update comment

Who changed what in which revision?

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