Sensor interface for Texas TMP102 human body temperature sensor.
More...
Sensor interface for Texas TMP102 human body temperature sensor.
◆ 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
◆ SIF_TMP102_TCONV_MAX_TEMP
#define SIF_TMP102_TCONV_MAX_TEMP 60 /* temperature */ |
◆ sif_TMP102_mode
Enumerator |
---|
SIF_TMP102_MODE_POLL_ONE_SHOT | |
SIF_TMP102_MODE_TCONV_WAIT | |
◆ 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.