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

Vishay TEMT6000 ambient light sensor interface. More...

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

Go to the source code of this file.

Macros

#define ADC_CHANNEL_LIGHT_TEMT   ADC_4
 
#define ADC_CHANNEL_LIGHT_NB_SAMPLES   16
 

Functions

void light_temt_init (void)
 
void light_temt_periodic (void)
 

Variables

uint16_t adc_light_temt
 
static struct adc_buf buf_light_temt
 

Detailed Description

Vishay TEMT6000 ambient light sensor interface.

This reads the values for light intensity from the Vishay TEMT6000 sensor.

Definition in file light_temt.c.

Macro Definition Documentation

◆ ADC_CHANNEL_LIGHT_NB_SAMPLES

#define ADC_CHANNEL_LIGHT_NB_SAMPLES   16

Definition at line 41 of file light_temt.c.

◆ ADC_CHANNEL_LIGHT_TEMT

#define ADC_CHANNEL_LIGHT_TEMT   ADC_4

Definition at line 37 of file light_temt.c.

Function Documentation

◆ light_temt_init()

void light_temt_init ( void  )

Definition at line 49 of file light_temt.c.

References adc_buf_channel(), ADC_CHANNEL_LIGHT_NB_SAMPLES, ADC_CHANNEL_LIGHT_TEMT, and buf_light_temt.

+ Here is the call graph for this function:

◆ light_temt_periodic()

void light_temt_periodic ( void  )

Variable Documentation

◆ adc_light_temt

uint16_t adc_light_temt

Definition at line 45 of file light_temt.c.

Referenced by light_temt_periodic().

◆ buf_light_temt

struct adc_buf buf_light_temt
static

Definition at line 45 of file light_temt.c.

Referenced by light_temt_init(), and light_temt_periodic().