Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
humid_htm_b71.c File Reference

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 "modules/datalink/downlink.h"
+ Include dependency graph for humid_htm_b71.c:

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
 

Detailed Description

TronSens HTM-B71 humidity/temperature sensor i2c interface.

Definition in file humid_htm_b71.c.

Macro Definition Documentation

◆ HTM_I2C_DEV

#define HTM_I2C_DEV   i2c0

Definition at line 41 of file humid_htm_b71.c.

◆ HTM_SLAVE_ADDR

#define HTM_SLAVE_ADDR   0x28

Definition at line 44 of file humid_htm_b71.c.

Function Documentation

◆ humid_htm_event()

◆ humid_htm_init()

void humid_htm_init ( void  )

Definition at line 52 of file humid_htm_b71.c.

References HTM_IDLE, and htm_status.

◆ humid_htm_read()

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().

+ Here is the call graph for this function:

◆ humid_htm_start()

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.

+ Here is the call graph for this function:

Variable Documentation

◆ fhumidhtm

float fhumidhtm

Definition at line 49 of file humid_htm_b71.c.

Referenced by humid_htm_event().

◆ ftemphtm

float ftemphtm

Definition at line 49 of file humid_htm_b71.c.

Referenced by humid_htm_event().

◆ htm_status

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().

◆ htm_trans

struct i2c_transaction htm_trans

Definition at line 1 of file humid_htm_b71.c.

Referenced by humid_htm_event(), humid_htm_read(), and humid_htm_start().

◆ humidhtm

uint16_t humidhtm

Definition at line 48 of file humid_htm_b71.c.

Referenced by humid_htm_event().

◆ temphtm

uint16_t temphtm

Definition at line 48 of file humid_htm_b71.c.

Referenced by humid_htm_event().