Example program for EVAL-AD4130
Dependencies: tempsensors sdp_k1_sdram
app/ad4130_temperature_sensor.h@2:7b2b268ea49c, 22 months ago (annotated)
- Committer:
- Mahesh Phalke
- Date:
- Wed Jul 20 18:12:00 2022 +0530
- Revision:
- 2:7b2b268ea49c
Initial firmware commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mahesh Phalke |
2:7b2b268ea49c | 1 | /***************************************************************************//* |
Mahesh Phalke |
2:7b2b268ea49c | 2 | * @file ad4130_temperature_sensor.h |
Mahesh Phalke |
2:7b2b268ea49c | 3 | * @brief AD4130 temperature sensor module global defines |
Mahesh Phalke |
2:7b2b268ea49c | 4 | ****************************************************************************** |
Mahesh Phalke |
2:7b2b268ea49c | 5 | * Copyright (c) 2022 Analog Devices, Inc. |
Mahesh Phalke |
2:7b2b268ea49c | 6 | * All Rights Reserved. |
Mahesh Phalke |
2:7b2b268ea49c | 7 | * |
Mahesh Phalke |
2:7b2b268ea49c | 8 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
Mahesh Phalke |
2:7b2b268ea49c | 9 | * By using this software you agree to the terms of the associated |
Mahesh Phalke |
2:7b2b268ea49c | 10 | * Analog Devices Software License Agreement. |
Mahesh Phalke |
2:7b2b268ea49c | 11 | ******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 12 | |
Mahesh Phalke |
2:7b2b268ea49c | 13 | #ifndef AD4130_TEMPERATURE_SENSOR_H_ |
Mahesh Phalke |
2:7b2b268ea49c | 14 | #define AD4130_TEMPERATURE_SENSOR_H_ |
Mahesh Phalke |
2:7b2b268ea49c | 15 | |
Mahesh Phalke |
2:7b2b268ea49c | 16 | #ifdef __cplusplus |
Mahesh Phalke |
2:7b2b268ea49c | 17 | extern "C" |
Mahesh Phalke |
2:7b2b268ea49c | 18 | { |
Mahesh Phalke |
2:7b2b268ea49c | 19 | #endif // _cplusplus |
Mahesh Phalke |
2:7b2b268ea49c | 20 | |
Mahesh Phalke |
2:7b2b268ea49c | 21 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 22 | /***************************** Include Files **********************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 23 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 24 | |
Mahesh Phalke |
2:7b2b268ea49c | 25 | #include <stdint.h> |
Mahesh Phalke |
2:7b2b268ea49c | 26 | |
Mahesh Phalke |
2:7b2b268ea49c | 27 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 28 | /********************* Macros and Constants Definitions ***********************/ |
Mahesh Phalke |
2:7b2b268ea49c | 29 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 30 | |
Mahesh Phalke |
2:7b2b268ea49c | 31 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 32 | /********************** Public/Extern Declarations ****************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 33 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 34 | |
Mahesh Phalke |
2:7b2b268ea49c | 35 | float get_ntc_thermistor_temperature(void *dev, uint32_t ntc_sample, |
Mahesh Phalke |
2:7b2b268ea49c | 36 | uint8_t chn); |
Mahesh Phalke |
2:7b2b268ea49c | 37 | float get_rtd_temperature(void *dev, uint32_t rtd_sample, uint8_t chn); |
Mahesh Phalke |
2:7b2b268ea49c | 38 | float get_tc_temperature(void *dev, |
Mahesh Phalke |
2:7b2b268ea49c | 39 | uint32_t tc_sample, uint32_t cjc_sample, |
Mahesh Phalke |
2:7b2b268ea49c | 40 | uint8_t tc_chn, uint8_t cjc_chn, |
Mahesh Phalke |
2:7b2b268ea49c | 41 | float *cjc_temp); |
Mahesh Phalke |
2:7b2b268ea49c | 42 | |
Mahesh Phalke |
2:7b2b268ea49c | 43 | #ifdef __cplusplus // Closing extern c |
Mahesh Phalke |
2:7b2b268ea49c | 44 | } |
Mahesh Phalke |
2:7b2b268ea49c | 45 | #endif // _cplusplus |
Mahesh Phalke |
2:7b2b268ea49c | 46 | |
Mahesh Phalke |
2:7b2b268ea49c | 47 | #endif // end of AD4130_TEMPERATURE_SENSOR_H_ |