Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
temp_tmp102.c File Reference

TI TMP102 I2C sensor interface. More...

#include "modules/meteo/temp_tmp102.h"
#include "mcu_periph/i2c.h"
#include "led.h"
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for temp_tmp102.c:

Go to the source code of this file.

Macros

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 
#define TMP_I2C_DEV   i2c0
 
#define TMP102_SLAVE_ADDR   0x90
 
#define TMP102_CONF1   0x60
 
#define TMP102_CONF2   0xF0
 

Functions

void tmp102_init (void)
 
void tmp102_periodic (void)
 
void tmp102_event (void)
 

Variables

uint8_t tmp_meas_started
 
float ftmp_temperature
 
struct i2c_transaction tmp_trans
 

Detailed Description

TI TMP102 I2C sensor interface.

This reads the values for temperature from the TI TMP201 sensor through I2C.

Definition in file temp_tmp102.c.

Macro Definition Documentation

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 41 of file temp_tmp102.c.

#define TMP102_CONF1   0x60

Definition at line 63 of file temp_tmp102.c.

Referenced by tmp102_init().

#define TMP102_CONF2   0xF0

Definition at line 65 of file temp_tmp102.c.

Referenced by tmp102_init().

#define TMP102_SLAVE_ADDR   0x90

Definition at line 59 of file temp_tmp102.c.

Referenced by tmp102_init(), and tmp102_periodic().

#define TMP_I2C_DEV   i2c0

Definition at line 49 of file temp_tmp102.c.

Referenced by tmp102_init(), and tmp102_periodic().

Function Documentation

void tmp102_periodic ( void  )

Variable Documentation

float ftmp_temperature

Definition at line 45 of file temp_tmp102.c.

Referenced by tmp102_event().

uint8_t tmp_meas_started

Definition at line 44 of file temp_tmp102.c.

Referenced by tmp102_event(), tmp102_init(), and tmp102_periodic().

struct i2c_transaction tmp_trans

Definition at line 46 of file temp_tmp102.c.

Referenced by tmp102_event(), tmp102_init(), and tmp102_periodic().