Paparazzi UAS  v5.15_devel-110-g5cf27ee
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
humid_sht_uart.c File Reference

SHTxx sensor interface. More...

#include "std.h"
#include "mcu_periph/gpio.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
#include "humid_sht_uart.h"
+ Include dependency graph for humid_sht_uart.c:

Go to the source code of this file.

Functions

void calc_sht (uint16_t hum, uint16_t tem, float *fhum, float *ftem)
 
void humid_sht_uart_parse (uint8_t c)
 
void humid_sht_uart_periodic (void)
 
void humid_sht_uart_init (void)
 
void humid_sht_uart_event (void)
 

Variables

uint16_t humidsht
 !SITL More...
 
uint16_t tempsht
 
float fhumidsht
 
float ftempsht
 
bool humid_sht_available
 

Detailed Description

SHTxx sensor interface.

This reads the values for humidity and temperature from the SHTxx sensor through an uart.

Definition in file humid_sht_uart.c.

Function Documentation

void calc_sht ( uint16_t  hum,
uint16_t  tem,
float *  fhum,
float *  ftem 
)

Definition at line 45 of file humid_sht_uart.c.

References C1, and C2.

Referenced by humid_sht_uart_parse().

+ Here is the caller graph for this function:

void humid_sht_uart_event ( void  )

Definition at line 109 of file humid_sht_uart.c.

References humid_sht_uart_parse(), MetBuffer, and MetGetch.

+ Here is the call graph for this function:

void humid_sht_uart_init ( void  )

Definition at line 105 of file humid_sht_uart.c.

void humid_sht_uart_parse ( uint8_t  c)

Definition at line 81 of file humid_sht_uart.c.

References calc_sht(), DefaultChannel, DefaultDevice, fhumidsht, ftempsht, humidsht, and tempsht.

Referenced by humid_sht_uart_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void humid_sht_uart_periodic ( void  )

Definition at line 76 of file humid_sht_uart.c.

Variable Documentation

float fhumidsht

Definition at line 39 of file humid_sht_uart.c.

Referenced by humid_sht_uart_parse().

float ftempsht

Definition at line 39 of file humid_sht_uart.c.

Referenced by humid_sht_uart_parse().

bool humid_sht_available

Definition at line 40 of file humid_sht_uart.c.

uint16_t humidsht

!SITL

Definition at line 38 of file humid_sht_uart.c.

Referenced by humid_sht_uart_parse().

uint16_t tempsht

Definition at line 38 of file humid_sht_uart.c.

Referenced by humid_sht_uart_parse().