Example program for EVAL-AD7124

Dependencies:   tempsensors adi_console_menu platform_drivers

Committer:
mahphalke
Date:
Mon Feb 22 05:13:58 2021 +0000
Revision:
1:c863d7e9e272
Child:
3:f20f09251190
Initial commit- Added source files

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mahphalke 1:c863d7e9e272 1 /***************************************************************************//*
mahphalke 1:c863d7e9e272 2 * @file ad7124_temperature_sensor.h
mahphalke 1:c863d7e9e272 3 * @brief AD7124 temperature sensor module global defines
mahphalke 1:c863d7e9e272 4 * @details
mahphalke 1:c863d7e9e272 5 ******************************************************************************
mahphalke 1:c863d7e9e272 6 * Copyright (c) 2021 Analog Devices, Inc. All Rights Reserved.
mahphalke 1:c863d7e9e272 7 *
mahphalke 1:c863d7e9e272 8 * This software is proprietary to Analog Devices, Inc. and its licensors.
mahphalke 1:c863d7e9e272 9 * By using this software you agree to the terms of the associated
mahphalke 1:c863d7e9e272 10 * Analog Devices Software License Agreement.
mahphalke 1:c863d7e9e272 11 ******************************************************************************/
mahphalke 1:c863d7e9e272 12
mahphalke 1:c863d7e9e272 13 #ifndef AD7124_TEMPERATURE_SENSOR_H_
mahphalke 1:c863d7e9e272 14 #define AD7124_TEMPERATURE_SENSOR_H_
mahphalke 1:c863d7e9e272 15
mahphalke 1:c863d7e9e272 16 #ifdef __cplusplus
mahphalke 1:c863d7e9e272 17 extern "C"
mahphalke 1:c863d7e9e272 18 {
mahphalke 1:c863d7e9e272 19 #endif // _cplusplus
mahphalke 1:c863d7e9e272 20
mahphalke 1:c863d7e9e272 21 /******************************************************************************/
mahphalke 1:c863d7e9e272 22 /***************************** Include Files **********************************/
mahphalke 1:c863d7e9e272 23 /******************************************************************************/
mahphalke 1:c863d7e9e272 24
mahphalke 1:c863d7e9e272 25 #include <stdint.h>
mahphalke 1:c863d7e9e272 26 #include "ad7124_regs_configs.h"
mahphalke 1:c863d7e9e272 27
mahphalke 1:c863d7e9e272 28 /******************************************************************************/
mahphalke 1:c863d7e9e272 29 /********************* Macros and Constants Definitions ***********************/
mahphalke 1:c863d7e9e272 30 /******************************************************************************/
mahphalke 1:c863d7e9e272 31
mahphalke 1:c863d7e9e272 32 /* RTD Rref Resistance value (in ohms) */
mahphalke 1:c863d7e9e272 33 #define RTD_RREF 5110
mahphalke 1:c863d7e9e272 34
mahphalke 1:c863d7e9e272 35 /******************************************************************************/
mahphalke 1:c863d7e9e272 36 /********************** Public/Extern Declarations ****************************/
mahphalke 1:c863d7e9e272 37 /******************************************************************************/
mahphalke 1:c863d7e9e272 38
mahphalke 1:c863d7e9e272 39 float get_tc_temperature(float tc_sample, float cjc_sample,
mahphalke 1:c863d7e9e272 40 cjc_sensor_type cjc_sensor);
mahphalke 1:c863d7e9e272 41 float get_rtd_temperature(int32_t rtd_sample);
mahphalke 1:c863d7e9e272 42 void store_rtd_calibrated_iout_ratio(float iout_ratio, bool status);
mahphalke 1:c863d7e9e272 43 float get_ntc_thermistor_temperature(int32_t ntc_sample);
mahphalke 1:c863d7e9e272 44 float get_ptc_thermistor_temperature(int32_t ntc_sample);
mahphalke 1:c863d7e9e272 45
mahphalke 1:c863d7e9e272 46 #ifdef __cplusplus // Closing extern c
mahphalke 1:c863d7e9e272 47 }
mahphalke 1:c863d7e9e272 48 #endif // _cplusplus
mahphalke 1:c863d7e9e272 49
mahphalke 1:c863d7e9e272 50 #endif // end of AD7124_TEMPERATURE_SENSOR_H_
mahphalke 1:c863d7e9e272 51