Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 "messages.h"
#include "subsystems/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

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

Function Documentation

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

+ Here is the call graph for this function:

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

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