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_temod.c File Reference

Hygrosens TEMOD-I2C-Rx temperature sensor interface for PT1000 e.g. More...

#include "modules/meteo/temp_temod.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_temod.c:

Go to the source code of this file.

Macros

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 
#define TEMOD_I2C_DEV   i2c0
 
#define TEMOD_TYPE   TEMOD_I2C_R1
 
#define TEMOD_SLAVE_ADDR   0xF0
 

Functions

void temod_init (void)
 
void temod_periodic (void)
 
void temod_event (void)
 

Variables

float ftmd_temperature
 
struct i2c_transaction tmd_trans
 

Detailed Description

Hygrosens TEMOD-I2C-Rx temperature sensor interface for PT1000 e.g.

Heraeus PT 1000 M 222 KL. B

Definition in file temp_temod.c.

Macro Definition Documentation

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 42 of file temp_temod.c.

#define TEMOD_I2C_DEV   i2c0

Definition at line 46 of file temp_temod.c.

Referenced by temod_periodic().

#define TEMOD_SLAVE_ADDR   0xF0

Definition at line 53 of file temp_temod.c.

Referenced by temod_periodic().

#define TEMOD_TYPE   TEMOD_I2C_R1

Definition at line 50 of file temp_temod.c.

Referenced by temod_event().

Function Documentation

void temod_init ( void  )

Definition at line 55 of file temp_temod.c.

References I2CTransDone, i2c_transaction::status, and tmd_trans.

void temod_periodic ( void  )

Definition at line 59 of file temp_temod.c.

References I2CReceive, TEMOD_I2C_DEV, TEMOD_SLAVE_ADDR, and tmd_trans.

Variable Documentation

float ftmd_temperature

Definition at line 38 of file temp_temod.c.

Referenced by temod_event().

struct i2c_transaction tmd_trans

Definition at line 39 of file temp_temod.c.

Referenced by temod_event(), temod_init(), and temod_periodic().