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

#define ADC_CHANNEL_LIGHT_NB_SAMPLES   16

Definition at line 41 of file light_temt.c.

Referenced by light_temt_init().

#define ADC_CHANNEL_LIGHT_TEMT   ADC_4

Definition at line 37 of file light_temt.c.

Referenced by light_temt_init().

Function Documentation

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:

void light_temt_periodic ( void  )

Variable Documentation

uint16_t adc_light_temt

Definition at line 45 of file light_temt.c.

Referenced by light_temt_periodic().

struct adc_buf buf_light_temt
static

Definition at line 47 of file light_temt.c.

Referenced by light_temt_init(), and light_temt_periodic().