IIO firmware for the AD4110
Dependencies: tempsensors sdp_k1_sdram
app/ad4110_temperature_sensor.h@1:a78dbaa4b05d, 2022-08-01 (annotated)
- Committer:
- Janani Sunil
- Date:
- Mon Aug 01 11:09:48 2022 +0530
- Revision:
- 1:a78dbaa4b05d
- Parent:
- 0:6ca37a8f8ba9
Initial implementation of AD4110 IIO Firmware
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Janani Sunil | 0:6ca37a8f8ba9 | 1 | /***************************************************************************//* |
Janani Sunil | 0:6ca37a8f8ba9 | 2 | * @file ad4110_temperature_sensor.h |
Janani Sunil | 0:6ca37a8f8ba9 | 3 | * @brief AD4110 temperature sensor module global defines |
Janani Sunil | 0:6ca37a8f8ba9 | 4 | * @details |
Janani Sunil | 0:6ca37a8f8ba9 | 5 | ****************************************************************************** |
Janani Sunil | 0:6ca37a8f8ba9 | 6 | * Copyright (c) 2022 Analog Devices, Inc. All Rights Reserved. |
Janani Sunil | 0:6ca37a8f8ba9 | 7 | * |
Janani Sunil | 0:6ca37a8f8ba9 | 8 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
Janani Sunil | 0:6ca37a8f8ba9 | 9 | * By using this software you agree to the terms of the associated |
Janani Sunil | 0:6ca37a8f8ba9 | 10 | * Analog Devices Software License Agreement. |
Janani Sunil | 0:6ca37a8f8ba9 | 11 | ******************************************************************************/ |
Janani Sunil | 0:6ca37a8f8ba9 | 12 | |
Janani Sunil | 0:6ca37a8f8ba9 | 13 | #ifndef AD4110_TEMPERATURE_SENSOR_H_ |
Janani Sunil | 0:6ca37a8f8ba9 | 14 | #define AD4110_TEMPERATURE_SENSOR_H_ |
Janani Sunil | 0:6ca37a8f8ba9 | 15 | |
Janani Sunil | 0:6ca37a8f8ba9 | 16 | #ifdef __cplusplus |
Janani Sunil | 0:6ca37a8f8ba9 | 17 | extern "C" |
Janani Sunil | 0:6ca37a8f8ba9 | 18 | { |
Janani Sunil | 0:6ca37a8f8ba9 | 19 | #endif // _cplusplus |
Janani Sunil | 0:6ca37a8f8ba9 | 20 | |
Janani Sunil | 0:6ca37a8f8ba9 | 21 | /******************************************************************************/ |
Janani Sunil | 0:6ca37a8f8ba9 | 22 | /***************************** Include Files **********************************/ |
Janani Sunil | 0:6ca37a8f8ba9 | 23 | /******************************************************************************/ |
Janani Sunil | 0:6ca37a8f8ba9 | 24 | |
Janani Sunil | 0:6ca37a8f8ba9 | 25 | /******************************************************************************/ |
Janani Sunil | 0:6ca37a8f8ba9 | 26 | /********************* Macros and Constants Definitions ***********************/ |
Janani Sunil | 0:6ca37a8f8ba9 | 27 | /******************************************************************************/ |
Janani Sunil | 0:6ca37a8f8ba9 | 28 | |
Janani Sunil | 0:6ca37a8f8ba9 | 29 | /******************************************************************************/ |
Janani Sunil | 0:6ca37a8f8ba9 | 30 | /********************** Public/Extern Declarations ****************************/ |
Janani Sunil | 0:6ca37a8f8ba9 | 31 | /******************************************************************************/ |
Janani Sunil | 0:6ca37a8f8ba9 | 32 | |
Janani Sunil | 0:6ca37a8f8ba9 | 33 | float get_rtd_temperature(uint32_t rtd_sample); |
Janani Sunil | 0:6ca37a8f8ba9 | 34 | float get_tc_temperature(uint32_t tc_sample, uint8_t tc_channel, |
Janani Sunil | 0:6ca37a8f8ba9 | 35 | uint32_t cjc_sample, uint8_t cjc_channel, float *cjc_temp); |
Janani Sunil | 0:6ca37a8f8ba9 | 36 | |
Janani Sunil | 0:6ca37a8f8ba9 | 37 | #ifdef __cplusplus // Closing extern c |
Janani Sunil | 0:6ca37a8f8ba9 | 38 | } |
Janani Sunil | 0:6ca37a8f8ba9 | 39 | #endif // _cplusplus |
Janani Sunil | 0:6ca37a8f8ba9 | 40 | |
Janani Sunil | 0:6ca37a8f8ba9 | 41 | #endif // end of AD4110_TEMPERATURE_SENSOR_H_ |