Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 "subsystems/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

#define ADC_CHANNEL_TEMP_REF   ADC_4

Definition at line 38 of file temp_tcouple_adc.c.

Referenced by temp_tcouple_adc_init().

#define ADC_CHANNEL_TEMP_TCOUPLE_NB_SAMPLES   16

Definition at line 45 of file temp_tcouple_adc.c.

Referenced by temp_tcouple_adc_init().

#define ADC_CHANNEL_TEMP_VAL   ADC_3

Definition at line 41 of file temp_tcouple_adc.c.

Referenced by temp_tcouple_adc_init().

Function Documentation

void temp_tcouple_adc_init ( void  )
void temp_tcouple_adc_periodic ( void  )

Variable Documentation

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

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

float fref[TCOUPLE_NB]

Definition at line 50 of file temp_tcouple_adc.c.

Referenced by temp_tcouple_adc_periodic().

float fval[TCOUPLE_NB]

Definition at line 50 of file temp_tcouple_adc.c.

Referenced by temp_tcouple_adc_periodic().

Definition at line 49 of file temp_tcouple_adc.c.

Referenced by gv_adapt_run(), and temp_tcouple_adc_periodic().

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