Board Support  Version 1.0
Functions available when using the Board Software Components
 All Data Structures Functions Variables Groups Pages
Thermometer

Thermometer Interface: connects to a temperature sensor. More...

Macros

#define TEMPERATURE_INVALID   INT32_MIN
 

Functions

int32_t Thermometer_Initialize (void)
 Initialize thermometer. More...
 
int32_t Thermometer_Uninitialize (void)
 De-initialize thermometer. More...
 
int32_t Thermometer_GetTemperature (void)
 Get last temperature measurement. More...
 

Description

Thermometer Interface: connects to a temperature sensor.

The Thermometer Interface functions connect to a temperature sensor on an evaluation board that is used to determine temperature.

Macro Definition Documentation

#define TEMPERATURE_INVALID   INT32_MIN

Defines invalid temperature.

Function Documentation

int32_t Thermometer_GetTemperature ( void  )

Get last temperature measurement.

Returns
Temperature in 0.1C, or TEMPERATURE_INVALID in case of error

The function reads the temperature of the thermometer and returns it as a degree Celsius value.

int32_t Thermometer_Initialize ( void  )

Initialize thermometer.

Returns
  • 0: function succeeded
  • -1: function failed

The function initializes the thermometer controller. The function returns an integer value of 0 on success, and -1 on error.

int32_t Thermometer_Uninitialize ( void  )

De-initialize thermometer.

Returns
  • 0: function succeeded
  • -1: function failed

The function de-initializes the thermometer controller. The function returns an integer value of 0 on success, and -1 on error.