Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
TronSens HTM-B71 humidity/temperature sensor i2c interface. More...
#include "modules/meteo/humid_htm_b71.h"
#include "mcu_periph/sys_time.h"
#include "mcu_periph/i2c.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
Go to the source code of this file.
Macros | |
#define | HTM_I2C_DEV i2c0 |
#define | HTM_SLAVE_ADDR 0x28 |
Functions | |
void | humid_htm_init (void) |
void | humid_htm_start (void) |
void | humid_htm_read (void) |
void | humid_htm_event (void) |
Variables | |
struct i2c_transaction | htm_trans |
uint8_t | htm_status |
uint16_t | humidhtm |
uint16_t | temphtm |
float | fhumidhtm |
float | ftemphtm |
TronSens HTM-B71 humidity/temperature sensor i2c interface.
Definition in file humid_htm_b71.c.
#define HTM_I2C_DEV i2c0 |
Definition at line 41 of file humid_htm_b71.c.
Referenced by humid_htm_read(), and humid_htm_start().
#define HTM_SLAVE_ADDR 0x28 |
Definition at line 44 of file humid_htm_b71.c.
Referenced by humid_htm_read(), and humid_htm_start().
void humid_htm_event | ( | void | ) |
Definition at line 76 of file humid_htm_b71.c.
References i2c_transaction::buf, DefaultChannel, DefaultDevice, fhumidhtm, ftemphtm, HTM_MR, HTM_MR_OK, HTM_READ_DATA, htm_status, htm_trans, humidhtm, I2CTransDone, I2CTransSuccess, i2c_transaction::status, and temphtm.
void humid_htm_init | ( | void | ) |
Definition at line 52 of file humid_htm_b71.c.
References HTM_IDLE, and htm_status.
void humid_htm_read | ( | void | ) |
Definition at line 67 of file humid_htm_b71.c.
References HTM_I2C_DEV, HTM_MR_OK, HTM_READ_DATA, HTM_SLAVE_ADDR, htm_status, htm_trans, and i2c_receive().
void humid_htm_start | ( | void | ) |
Definition at line 57 of file humid_htm_b71.c.
References HTM_I2C_DEV, HTM_MR, HTM_SLAVE_ADDR, htm_status, htm_trans, i2c_transmit(), and sys_time::nb_sec.
float fhumidhtm |
Definition at line 49 of file humid_htm_b71.c.
Referenced by humid_htm_event().
float ftemphtm |
Definition at line 49 of file humid_htm_b71.c.
Referenced by humid_htm_event().
uint8_t htm_status |
Definition at line 47 of file humid_htm_b71.c.
Referenced by humid_htm_event(), humid_htm_init(), humid_htm_read(), and humid_htm_start().
struct i2c_transaction htm_trans |
Definition at line 46 of file humid_htm_b71.c.
Referenced by humid_htm_event(), humid_htm_read(), and humid_htm_start().
uint16_t humidhtm |
Definition at line 48 of file humid_htm_b71.c.
Referenced by humid_htm_event().
uint16_t temphtm |
Definition at line 48 of file humid_htm_b71.c.
Referenced by humid_htm_event().