Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"
Go to the source code of this file.
Macros | |
#define | TMP102_TEMP_REG 0x00 |
#define | TMP102_CONF_REG 0x01 |
#define | TMP102_T_LOW_REG 0x02 |
#define | TMP102_T_HIGH_REG 0x03 |
Functions | |
void | tmp102_init (void) |
void | tmp102_periodic (void) |
void | tmp102_event (void) |
Variables | |
float | ftmp_temperature |
#define TMP102_CONF_REG 0x01 |
Definition at line 7 of file temp_tmp102.h.
#define TMP102_T_HIGH_REG 0x03 |
Definition at line 9 of file temp_tmp102.h.
#define TMP102_T_LOW_REG 0x02 |
Definition at line 8 of file temp_tmp102.h.
#define TMP102_TEMP_REG 0x00 |
Definition at line 6 of file temp_tmp102.h.
void tmp102_event | ( | void | ) |
Definition at line 80 of file temp_tmp102.c.
References i2c_transaction::buf, DefaultChannel, DefaultDevice, ftmp_temperature, I2CTransDone, I2CTransSuccess, i2c_transaction::status, tmp_meas_started, tmp_trans, and TRUE.
void tmp102_init | ( | void | ) |
Definition at line 63 of file temp_tmp102.c.
References i2c_transaction::buf, i2c_transmit(), TMP102_CONF1, TMP102_CONF2, TMP102_CONF_REG, TMP102_SLAVE_ADDR, TMP_I2C_DEV, tmp_meas_started, and tmp_trans.
void tmp102_periodic | ( | void | ) |
Definition at line 73 of file temp_tmp102.c.
References i2c_transaction::buf, i2c_transceive(), TMP102_SLAVE_ADDR, TMP102_TEMP_REG, TMP_I2C_DEV, tmp_meas_started, and tmp_trans.
float ftmp_temperature |
Definition at line 40 of file temp_tmp102.c.
Referenced by tmp102_event().