Library to support temperature sensor conversions and lookups
ptxxx.h@4:d8246c20aed2, 2021-07-01 (annotated)
- Committer:
- mahphalke
- Date:
- Thu Jul 01 13:41:18 2021 +0530
- Revision:
- 4:d8246c20aed2
- Parent:
- 2:bcfa5a2f21c9
Adding equation to calculate 10K 44031 NTC temperature using Beta value
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mahphalke | 1:f65f6fadda5d | 1 | /*! |
mahphalke | 1:f65f6fadda5d | 2 | ***************************************************************************** |
mahphalke | 1:f65f6fadda5d | 3 | @file: ptxxx.h |
mahphalke | 1:f65f6fadda5d | 4 | |
mahphalke | 1:f65f6fadda5d | 5 | @brief: |
mahphalke | 1:f65f6fadda5d | 6 | |
mahphalke | 1:f65f6fadda5d | 7 | @details: |
mahphalke | 1:f65f6fadda5d | 8 | ----------------------------------------------------------------------------- |
mahphalke | 1:f65f6fadda5d | 9 | Copyright (c) 2018, 2020 Analog Devices, Inc. All rights reserved. |
mahphalke | 1:f65f6fadda5d | 10 | |
mahphalke | 1:f65f6fadda5d | 11 | This software is proprietary to Analog Devices, Inc. and its licensors. |
mahphalke | 1:f65f6fadda5d | 12 | By using this software you agree to the terms of the associated |
mahphalke | 1:f65f6fadda5d | 13 | Analog Devices Software License Agreement. |
mahphalke | 1:f65f6fadda5d | 14 | |
mahphalke | 1:f65f6fadda5d | 15 | *****************************************************************************/ |
mahphalke | 1:f65f6fadda5d | 16 | |
mahphalke | 1:f65f6fadda5d | 17 | |
mahphalke | 1:f65f6fadda5d | 18 | #ifndef RTD_PTXXX_H_ |
mahphalke | 1:f65f6fadda5d | 19 | #define RTD_PTXXX_H_ |
mahphalke | 1:f65f6fadda5d | 20 | |
mahphalke | 1:f65f6fadda5d | 21 | #include <math.h> |
mahphalke | 1:f65f6fadda5d | 22 | |
mahphalke | 1:f65f6fadda5d | 23 | #include "rtd.h" |
mahphalke | 1:f65f6fadda5d | 24 | |
mahphalke | 1:f65f6fadda5d | 25 | class PT100 : public RTD |
mahphalke | 1:f65f6fadda5d | 26 | { |
mahphalke | 1:f65f6fadda5d | 27 | public: |
mahphalke | 1:f65f6fadda5d | 28 | float convertResistanceToTemperature(float resistance); |
mahphalke | 1:f65f6fadda5d | 29 | }; |
mahphalke | 1:f65f6fadda5d | 30 | |
mahphalke | 1:f65f6fadda5d | 31 | class PT1000 : public RTD |
mahphalke | 1:f65f6fadda5d | 32 | { |
mahphalke | 1:f65f6fadda5d | 33 | public: |
mahphalke | 1:f65f6fadda5d | 34 | float convertResistanceToTemperature(float resistance); |
mahphalke | 1:f65f6fadda5d | 35 | }; |
mahphalke | 1:f65f6fadda5d | 36 | |
mahphalke | 1:f65f6fadda5d | 37 | #endif /* RTD_PTXXX_H_ */ |