Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
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 "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
Go to the source code of this file.
Macros | |
#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 |
Hygrosens TEMOD-I2C-Rx temperature sensor interface for PT1000 e.g.
Heraeus PT 1000 M 222 KL. B
Definition in file temp_temod.c.
#define TEMOD_I2C_DEV i2c0 |
Definition at line 48 of file temp_temod.c.
#define TEMOD_SLAVE_ADDR 0xF0 |
Definition at line 55 of file temp_temod.c.
#define TEMOD_TYPE TEMOD_I2C_R1 |
Definition at line 52 of file temp_temod.c.
void temod_event | ( | void | ) |
Definition at line 74 of file temp_temod.c.
References i2c_transaction::buf, GpsState::course, DefaultChannel, DefaultDevice, GpsState::fix, ftmd_temperature, gps, GpsState::gspeed, GpsState::hmsl, I2CTransDone, I2CTransFailed, I2CTransSuccess, LlaCoor_i::lat, GpsState::lla_pos, LlaCoor_i::lon, GpsState::ned_vel, pprzLogFile, i2c_transaction::status, TEMOD_TYPE, tmd_trans, GpsState::tow, GpsState::week, and NedCoor_i::z.
void temod_init | ( | void | ) |
Definition at line 57 of file temp_temod.c.
References I2CTransDone, i2c_transaction::status, and tmd_trans.
void temod_periodic | ( | void | ) |
Definition at line 66 of file temp_temod.c.
References i2c_receive(), I2CTransDone, i2c_transaction::status, TEMOD_I2C_DEV, TEMOD_SLAVE_ADDR, and tmd_trans.
float ftmd_temperature |
Definition at line 43 of file temp_temod.c.
Referenced by temod_event().
struct i2c_transaction tmd_trans |
Definition at line 43 of file temp_temod.c.
Referenced by temod_event(), temod_init(), and temod_periodic().