Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: ptc_ky81_110.h
- Revision:
- 0:854742598c2c
- Child:
- 1:851dbb04c1e5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ptc_ky81_110.h Fri Feb 19 16:05:58 2021 +0530
@@ -0,0 +1,49 @@
+/*!
+ *****************************************************************************
+ @file: ptc_ky81_110.h
+
+ @brief: This file contains the global parameters for ptc_ky81_110 module
+
+ @details:
+ -----------------------------------------------------------------------------
+ Copyright (c) 2020 Analog Devices, Inc. All rights reserved.
+
+ This software is proprietary to Analog Devices, Inc. and its licensors.
+ By using this software you agree to the terms of the associated
+ Analog Devices Software License Agreement.
+
+*****************************************************************************/
+
+#include <stdint.h>
+
+#ifndef _PTC_KY81_110_H_
+#define _PTC_KY81_110_H_
+
+/******************************************************************************/
+/***************************** Include Files **********************************/
+/******************************************************************************/
+
+#include "thermistor.h"
+
+/* This is a child class of thermistor parent class and contains
+ * attributes specific to KY81/110 PTC sensor */
+class ptc_ky81_110 : thermistor
+{
+private:
+ /* KY81/110 PTC temperature coefficient */
+ float temperature_coeff;
+#ifdef DEFINE_LOOKUP_TABLES
+ int16_t lut_offset;
+ int16_t lut_size;
+ static const uint32_t lut[];
+#endif
+
+public:
+ ptc_ky81_110();
+ float convert(const float resistance);
+#ifdef DEFINE_LOOKUP_TABLES
+ float lookup(const float resistance);
+#endif
+};
+
+#endif /* _PTC_KY81_110_H_ */