MAX31850, DS18B20, DS2450, thermocouple
Embed:
(wiki syntax)
Show/hide line numbers
MAX31850.h
00001 /* DS2450 specific values (see datasheet http://www.maximintegrated.com/datasheet/index.mvp/id/7953) */ 00002 #ifndef __MAX31850_H__ 00003 #define __MAX31850_H__ 00004 #define MAX31850_ID 0x3B 00005 #define MAX31850_SP_SIZE 9 00006 00007 #define MAX31850_CONVERT_T 0x44 // 0x44 00008 #define MAX31850_READ_POWER_SUPPLY 0xB4 00009 #define MAX31850_READ 0xBE 00010 00011 #define MAX31850_ADC_TEMP_TC_UNIT 0.25 00012 #define MAX31850_ADC_TEMP_CJ_UNIT 0.0625 00013 #define MAX31850_K 41.276//41.276µV/C 00014 00015 #define MAX31850_ERR_FAULT -10; 00016 #define MAX31850_ERR_SHORT2VDD -12; 00017 #define MAX31850_ERR_SHORT2GND -13; 00018 #define MAX31850_ERR_OPEN_CIRCUIT -14; 00019 /** 00020 * @brief lecture registre MAX31850 00021 * @param [in] uint8_t id[] tableau d'identifiant OW 00022 * @param [out] uint8_t sp[] tableau de registre 00023 * @param [in] uint8_t n bus ow 00024 * @return OW_OK si erreur retourne OW_ERROR_CRC 00025 * @date 02/12/2013 00026 * 00027 */ 00028 int MAX31850_Read_Scratch(uint8_t id[],uint8_t sp[],uint8_t n) ; 00029 00030 /** 00031 * @brief lecture temperature thermocouple Linearized MAX31850 00032 * @param [in] uint8_t sp[] tableau registre MAX31850 00033 * @param [out] float temperature thermocouple Linearized degre Celsuis 00034 * @return OW_OK si erreur retourne ERROR 00035 * @date 04/12/2013 00036 * 00037 */ 00038 int MAX31850_Temp_TRUE(uint8_t *sp,double *temp); 00039 00040 /** 00041 * @brief lecture temperature thermocouple MAX31850 00042 * @param [in] uint8_t sp[] tableau registre MAX31850 00043 * @param [out] float temperature thermocouple degre Celsuis 00044 * @return OW_OK si erreur retourne ERROR 00045 * @date 04/12/2013 00046 * 00047 */ 00048 int MAX31850_Temp_TC(uint8_t *sp,float *temp) ; 00049 00050 /** 00051 * @brief lecture temperature cold junction MAX31850 00052 * @param [in] uint8_t sp[] tableau registre MAX31850 00053 * @param [out] float temperature cold junction degre Celsuis 00054 * @return OW_OK si erreur retourne ERROR 00055 * @date 04/12/2013 00056 * 00057 */ 00058 int MAX31850_Temp_CJ(uint8_t *sp,float *temp) ; 00059 00060 /** 00061 * @brief start convertion MAX31850 00062 * @param [in] uint8_t id[] tableau d'identifiant OW 00063 * @param [in] uint8_t n bus ow 00064 * @return OW_OK 00065 * @date 02/12/2013 00066 * 00067 */ 00068 int MAX31850_Start_meas(uint8_t id[],uint8_t n); 00069 #endif
Generated on Mon Jul 18 2022 20:45:44 by
1.7.2
frederic blanc