Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tmp108.h File Reference

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

Go to the source code of this file.

Macros

#define TMP108_OVER_TEMP_MASK   0x1000U
 a tmp108 mask for the over temp alert bit in the status word
 
#define TMP108_UNDER_TEMP_MASK   0x0800U
 a tmp108 mask for the under temp alert bit in the status word
 
#define A6212_ALERT_TEMP_MASK   0x0020U
 a as6212 mask for the over temp alert bit in the status word
 

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

◆ A6212_ALERT_TEMP_MASK

#define A6212_ALERT_TEMP_MASK   0x0020U

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

◆ TMP108_OVER_TEMP_MASK

#define TMP108_OVER_TEMP_MASK   0x1000U

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

◆ TMP108_UNDER_TEMP_MASK

#define TMP108_UNDER_TEMP_MASK   0x0800U

a tmp108 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.