Functions
SensorTmp007.h File Reference

Detailed Description

Driver for the Texas Instruments TMP007 infra-red thermopile sensor.

Driver include

This header file should be included in an application as follows:

#include "stdint.h"
#include "stdbool.h"

Go to the source code of this file.

Functions

bool SensorTmp007_init (void)
 Initialize the temperature sensor driver. More...
 
bool SensorTmp007_enable (bool enable)
 Enable/disable measurement cycle. More...
 
bool SensorTmp007_test (void)
 Run a sensor self-test. More...
 
bool SensorTmp007_read (uint16_t *rawLocalTemp, uint16_t *rawObjTemp)
 Read the sensor temperature registers. More...
 
void SensorTmp007_convert (uint16_t rawLocalTemp, uint16_t rawObjTemp, float *tObj, float *tLocal)
 Convert raw data to temperature [C]. More...
 

Function Documentation

§ SensorTmp007_init()

bool SensorTmp007_init ( void  )

Initialize the temperature sensor driver.

Returns
true if success

§ SensorTmp007_enable()

bool SensorTmp007_enable ( bool  enable)

Enable/disable measurement cycle.

Parameters
enable- flag to turn the sensor on/off
Returns
true if success

§ SensorTmp007_test()

bool SensorTmp007_test ( void  )

Run a sensor self-test.

Returns
true if passed

§ SensorTmp007_read()

bool SensorTmp007_read ( uint16_t *  rawLocalTemp,
uint16_t *  rawObjTemp 
)

Read the sensor temperature registers.

Parameters
rawLocalTemp- local temperature in 16 bit format
rawObjTemp- object temperature in 16 bit format
Returns
true if valid data

§ SensorTmp007_convert()

void SensorTmp007_convert ( uint16_t  rawLocalTemp,
uint16_t  rawObjTemp,
float *  tObj,
float *  tLocal 
)

Convert raw data to temperature [C].

Parameters
rawLocalTemp- raw temperature from sensor
rawObjTemp- raw temperature from sensor
tObj- converted object temperature
tLocal- converted die temperature
Copyright 2018, Texas Instruments Incorporated