IIO firmware for the AD4110

Dependencies:   tempsensors sdp_k1_sdram

app/ad4110_temperature_sensor.h

Committer:
Janani Sunil
Date:
2022-07-27
Revision:
0:6ca37a8f8ba9

File content as of revision 0:6ca37a8f8ba9:

/***************************************************************************//*
 * @file    ad4110_temperature_sensor.h
 * @brief   AD4110 temperature sensor module global defines
 * @details
******************************************************************************
 * Copyright (c) 2022 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.
******************************************************************************/

#ifndef AD4110_TEMPERATURE_SENSOR_H_
#define AD4110_TEMPERATURE_SENSOR_H_

#ifdef __cplusplus
extern "C"
{
#endif //  _cplusplus

/******************************************************************************/
/***************************** Include Files **********************************/
/******************************************************************************/

/******************************************************************************/
/********************* Macros and Constants Definitions ***********************/
/******************************************************************************/

/******************************************************************************/
/********************** Public/Extern Declarations ****************************/
/******************************************************************************/

float get_rtd_temperature(uint32_t rtd_sample);
float get_tc_temperature(uint32_t tc_sample, uint8_t tc_channel,
			 uint32_t cjc_sample, uint8_t cjc_channel, float *cjc_temp);

#ifdef __cplusplus  // Closing extern c
}
#endif //  _cplusplus

#endif	// end of AD4110_TEMPERATURE_SENSOR_H_