Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
Texas TMP102 human body temperature sensor driver

Sensor interface for Texas TMP102 human body temperature sensor. More...

Collaboration diagram for Texas TMP102 human body temperature sensor driver:

Macros

#define SIF_SAD_TMP102   0x48 /* ADD0 pin connection = GND */
 
#define SIF_TMP102_ALERT_PIN   33
 
#define SIF_TMP102_MODE   SIF_TMP102_MODE_TCONV_WAIT
 
#define SIF_TMP102_TCONV_MAX_TEMP   60 /* temperature */
 
#define SIF_TMP102_CONFIG_ONESHOT   0x80
 
#define SIF_TMP102_CONFIG_INTERRUPT   0x02 /* The AL pin is activated until being any pin being read */
 

Enumerations

enum  sif_TMP102_mode { SIF_TMP102_MODE_POLL_ONE_SHOT , SIF_TMP102_MODE_TCONV_WAIT }
 

Functions

u16_t SIF_TMP102_ReadTemperature (void)
 TMP102: Read Temperature. More...
 
u8_t SIF_TMP102_Initialise (void)
 TMP102: Initialise Sensor. More...
 
void SIF_TMP102_Reset (void)
 TMP102: Soft Reset Command. More...
 

Detailed Description

Sensor interface for Texas TMP102 human body temperature sensor.

Macro Definition Documentation

◆ SIF_SAD_TMP102

#define SIF_SAD_TMP102   0x48 /* ADD0 pin connection = GND */

◆ SIF_TMP102_ALERT_PIN

#define SIF_TMP102_ALERT_PIN   33

◆ SIF_TMP102_CONFIG_INTERRUPT

#define SIF_TMP102_CONFIG_INTERRUPT   0x02 /* The AL pin is activated until being any pin being read */

◆ SIF_TMP102_CONFIG_ONESHOT

#define SIF_TMP102_CONFIG_ONESHOT   0x80

◆ SIF_TMP102_MODE

#define SIF_TMP102_MODE   SIF_TMP102_MODE_TCONV_WAIT

◆ SIF_TMP102_TCONV_MAX_TEMP

#define SIF_TMP102_TCONV_MAX_TEMP   60 /* temperature */

Enumeration Type Documentation

◆ sif_TMP102_mode

Enumerator
SIF_TMP102_MODE_POLL_ONE_SHOT 
SIF_TMP102_MODE_TCONV_WAIT 

Function Documentation

◆ SIF_TMP102_Initialise()

u8_t SIF_TMP102_Initialise ( void  )

TMP102: Initialise Sensor.

Returns
status, 0 = success

◆ SIF_TMP102_ReadTemperature()

u16_t SIF_TMP102_ReadTemperature ( void  )

TMP102: Read Temperature.

Returns
Temperature as defined in TMP102 Datasheet, normal format. It is a fixed point number. Refer to TMP102 Datasheet Table 2 for more information on the conversion of temperature.

◆ SIF_TMP102_Reset()

void SIF_TMP102_Reset ( void  )

TMP102: Soft Reset Command.