Example program for EVAL-AD7124
Dependencies: tempsensors adi_console_menu platform_drivers
app/ad7124_temperature_sensor.h@8:4ae84166c8c1, 22 months ago (annotated)
- Committer:
- MPhalke@MPHALKE-L02.ad.analog.com
- Date:
- Wed Jul 20 11:20:01 2022 +0530
- Revision:
- 8:4ae84166c8c1
- Parent:
- 3:f20f09251190
Minor code comment updates
Who changed what in which revision?
User | Revision | Line number | New 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 | /******************************************************************************/ |
mahphalke | 1:c863d7e9e272 | 33 | /********************** Public/Extern Declarations ****************************/ |
mahphalke | 1:c863d7e9e272 | 34 | /******************************************************************************/ |
mahphalke | 1:c863d7e9e272 | 35 | |
mahphalke | 1:c863d7e9e272 | 36 | float get_tc_temperature(float tc_sample, float cjc_sample, |
mahphalke |
3:f20f09251190 | 37 | cjc_sensor_type cjc_sensor, float *cjc_temp); |
mahphalke |
3:f20f09251190 | 38 | uint32_t get_rtd_rref(void); |
mahphalke |
3:f20f09251190 | 39 | float get_rtd_temperature(int32_t rtd_sample, uint8_t gain); |
mahphalke | 1:c863d7e9e272 | 40 | void store_rtd_calibrated_iout_ratio(float iout_ratio, bool status); |
mahphalke | 1:c863d7e9e272 | 41 | float get_ntc_thermistor_temperature(int32_t ntc_sample); |
mahphalke | 1:c863d7e9e272 | 42 | float get_ptc_thermistor_temperature(int32_t ntc_sample); |
mahphalke | 1:c863d7e9e272 | 43 | |
mahphalke | 1:c863d7e9e272 | 44 | #ifdef __cplusplus // Closing extern c |
mahphalke | 1:c863d7e9e272 | 45 | } |
mahphalke | 1:c863d7e9e272 | 46 | #endif // _cplusplus |
mahphalke | 1:c863d7e9e272 | 47 | |
mahphalke | 1:c863d7e9e272 | 48 | #endif // end of AD7124_TEMPERATURE_SENSOR_H_ |