XDK API  3.6.0
Documentation
Files | Typedefs | Enumerations | Functions
Max31865

Driver for Max31865 module. More...

+ Collaboration diagram for Max31865:

Files

file  BCDS_Max31865.h
 

Typedefs

typedef enum
TemperatureSensorType_E 
TemperatureSensorType_T
 

Enumerations

enum  TemperatureSensorType_E
 

Functions

Retcode_T MAX31865_Connect (void)
 The function to connect to the MAX31865 chip. More...
 
Retcode_T MAX31865_Disconnect (void)
 The function to disconnect from the MAX31865 chip. More...
 
Retcode_T MAX31865_ReadResistance (float *resistance)
 The function to read the Resistance Value. More...
 
Retcode_T MAX31865_ReadTemperature (float *temperature)
 The function to read the external temperature sensor data. More...
 
Retcode_T MAX31865_SetSensorType (TemperatureSensorType_T SensorType)
 The function to Set the Sensor type of MAX31865 is either PT100 or PT1000. More...
 

Detailed Description

Typedef Documentation

Enumeration Type Documentation

Temperature sensor type selection options.

Enumerator
TEMPERATURE_SENSOR_PT100 

PT100 based temperature sensor

TEMPERATURE_SENSOR_PT1000 

PT1000 based temperature sensor

TEMPERATURE_SENSOR_INVALID 

Invalid Sensor Type

Function Documentation

Retcode_T MAX31865_Connect ( void  )
Returns
RETCODE_OK Connection to MAX31865 chip successful.
In case of any error refer BSP_Max31865_Connect or BSP_Max31865_Enable error codes.

+ Here is the caller graph for this function:

Retcode_T MAX31865_Disconnect ( void  )
Returns
RETCODE_OK Disconnection to MAX31865 chip successful.\
In case of any error refer BSP_Max31865_Disable or BSP_Max31865_Disconnect error codes.

+ Here is the caller graph for this function:

Retcode_T MAX31865_ReadResistance ( float *  resistance)
Parameters
[in]resistancepointer to variable to hold the resistance in Ohms
Returns
RETCODE_OK Reading the Resistance value successfully.
RETCODE_NULL_POINTER NULL Pointer.
RETCODE_FAILURE Reading the Resistance data failed.
In case of any error refer #SPISensorTransceiver_Transfer error codes.
Retcode_T MAX31865_ReadTemperature ( float *  temperature)
Parameters
[in]temperaturepointer to variable to hold the temperature data in millidegree Celcius
Returns
RETCODE_OK Reading the external temperature sensor data successful.
RETCODE_NULL_POINTER Invalid sensor data.
RETCODE_FAILURE Reading the external temperature sensor data failed.
In case of any error refer MAX31865_ReadResistance error codes.
Note
MAX31865_ReadTemperature uses Callendar Van Dusen model for temperature calculation.
For PT1000/PT100 the errors for different range of resistance is mentioned below
Ambient Temperature Range (in C) Temperature Error in (C)
-40 to 60 +/- 0.03
70 to 170 +/-0.08
180 to 300 +/-0.2
310 to 530 +/-0.4
540 to 700 +/-0.8 to +/-0.9
710 to 800 +/- 2
Retcode_T MAX31865_SetSensorType ( TemperatureSensorType_T  SensorType)
Parameters
[in]SensorTypevariable as a type TemperatureSensorType_T to pass which needs to be set either PT100 or PT1000 Sensor
Returns
RETCODE_OK Successfully received the Sensor type is either PT100 or PT1000.
RETCODE_FAILURE Failed to get the the external temperature sensor type failed.

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:53 by doxygen 1.8.8