Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
temp_tcouple_adc.c File Reference

Universitaet Tuebingen thermocouple interface. More...

#include "mcu_periph/adc.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
#include "modules/meteo/temp_tcouple_adc.h"
+ Include dependency graph for temp_tcouple_adc.c:

Go to the source code of this file.

Macros

#define ADC_CHANNEL_TEMP_REF   ADC_4
 
#define ADC_CHANNEL_TEMP_VAL   ADC_3
 
#define ADC_CHANNEL_TEMP_TCOUPLE_NB_SAMPLES   16
 

Functions

void temp_tcouple_adc_init (void)
 
void temp_tcouple_adc_periodic (void)
 

Variables

uint16_t ref [TCOUPLE_NB]
 
uint16_t val [TCOUPLE_NB]
 
float fref [TCOUPLE_NB]
 
float fval [TCOUPLE_NB]
 
int32_t temp_cnt
 
static struct adc_buf buf_temp_tcouple_ref
 
static struct adc_buf buf_temp_tcouple_val
 

Detailed Description

Universitaet Tuebingen thermocouple interface.

This reads the values for reference and measurement temperature from the Universitaet Tuebingen thermocouple sensor.

Definition in file temp_tcouple_adc.c.

Macro Definition Documentation

◆ ADC_CHANNEL_TEMP_REF

#define ADC_CHANNEL_TEMP_REF   ADC_4

Definition at line 38 of file temp_tcouple_adc.c.

◆ ADC_CHANNEL_TEMP_TCOUPLE_NB_SAMPLES

#define ADC_CHANNEL_TEMP_TCOUPLE_NB_SAMPLES   16

Definition at line 45 of file temp_tcouple_adc.c.

◆ ADC_CHANNEL_TEMP_VAL

#define ADC_CHANNEL_TEMP_VAL   ADC_3

Definition at line 41 of file temp_tcouple_adc.c.

Function Documentation

◆ temp_tcouple_adc_init()

void temp_tcouple_adc_init ( void  )

◆ temp_tcouple_adc_periodic()

void temp_tcouple_adc_periodic ( void  )

Variable Documentation

◆ buf_temp_tcouple_ref

struct adc_buf buf_temp_tcouple_ref
static

Definition at line 53 of file temp_tcouple_adc.c.

Referenced by temp_tcouple_adc_init(), and temp_tcouple_adc_periodic().

◆ buf_temp_tcouple_val

struct adc_buf buf_temp_tcouple_val
static

Definition at line 54 of file temp_tcouple_adc.c.

Referenced by temp_tcouple_adc_init(), and temp_tcouple_adc_periodic().

◆ fref

float fref[TCOUPLE_NB]

Definition at line 50 of file temp_tcouple_adc.c.

Referenced by temp_tcouple_adc_periodic().

◆ fval

float fval[TCOUPLE_NB]

Definition at line 50 of file temp_tcouple_adc.c.

Referenced by temp_tcouple_adc_periodic().

◆ ref

◆ temp_cnt

int32_t temp_cnt

Definition at line 51 of file temp_tcouple_adc.c.

Referenced by temp_tcouple_adc_init(), and temp_tcouple_adc_periodic().

◆ val