thermocouple.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /******************************************************************************
  2. * Additional info
  3. * ****************************************************************************
  4. * Changelog:
  5. * - v. 2.0 Optimize memory usage. Option to use binary search.
  6. * 2016-01-09 by Joakim Soderberg joakim.soderberg@gmail.com
  7. * - v. 1.0 Initial release)
  8. * 2014-04-24 by Albertas Mickėnas mic@wemakethings.net
  9. *
  10. * ****************************************************************************
  11. * Bugs, feedback, questions and modifications can be posted on the github page
  12. * on https://github.com/Miceuz/k-thermocouple-lib/
  13. * ****************************************************************************
  14. * - LICENSE -
  15. * GNU GPL v2 (http://www.gnu.org/licenses/gpl.txt)
  16. * This program is free software. You can redistribute it and/or modify
  17. * it under the terms of the GNU General Public License version 2 as published
  18. * by the Free Software Foundation.
  19. * ****************************************************************************
  20. */
  21. #ifndef __THERMOCOUPLE_H
  22. #define __THERMOCOUPLE_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /**
  27. * Returns temperature as a function of the ambient temperature and measured thermocouple voltage
  28. **/
  29. long thermocoupleConvertWithCJCompensationk(signed long microvoltsMeasured, signed long ambient);
  30. long thermocoupleConvertWithCJCompensationt(signed long microvoltsMeasured, signed long ambient);
  31. /**
  32. * Returns temperature equivalent the voltage provided in microvolts
  33. */
  34. long thermocoupleMvToCk(signed long microvolts);
  35. long thermocoupleMvToCt(signed long microvolts);
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif // _THERMOCOUPLE_H