Zephyr Project API  3.2.0
A Scalable Open Source RTOS
tmp108.h File Reference

Extended public API for TI's TMP108 temperature sensor. More...

Go to the source code of this file.

Macros

#define OVER_TEMP_MASK   0x1000U
 
#define UNDER_TEMP_MASK   0x0800U
 

Enumerations

enum  sensor_attribute_tmp_108 { SENSOR_ATTR_TMP108_ONE_SHOT_MODE = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_TMP108_SHUTDOWN_MODE , SENSOR_ATTR_TMP108_CONTINUOUS_CONVERSION_MODE , SENSOR_ATTR_TMP108_ALERT_POLARITY }
 

Detailed Description

Extended public API for TI's TMP108 temperature sensor.

This exposes attributes for the TMP108 which can be used for setting the on-chip Temperature Mode and alert parameters.

Macro Definition Documentation

◆ OVER_TEMP_MASK

#define OVER_TEMP_MASK   0x1000U

a mask for the over temp alert bit in the status word

◆ UNDER_TEMP_MASK

#define UNDER_TEMP_MASK   0x0800U

a mask for the under temp alert bit in the status word

Enumeration Type Documentation

◆ sensor_attribute_tmp_108

Enumerator
SENSOR_ATTR_TMP108_ONE_SHOT_MODE 

Turn on power saving/one shot mode

SENSOR_ATTR_TMP108_SHUTDOWN_MODE 

Shutdown the sensor

SENSOR_ATTR_TMP108_CONTINUOUS_CONVERSION_MODE 

Turn on continuous conversion

SENSOR_ATTR_TMP108_ALERT_POLARITY 

Set the alert pin polarity