Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
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"
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 |
Vishay TEMT6000 ambient light sensor interface.
This reads the values for light intensity from the Vishay TEMT6000 sensor.
Definition in file light_temt.c.
#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().
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.
void light_temt_periodic | ( | void | ) |
Definition at line 54 of file light_temt.c.
References adc_light_temt, adc_buf::av_nb_sample, buf_light_temt, DefaultChannel, DefaultDevice, and adc_buf::sum.
uint16_t adc_light_temt |
Definition at line 45 of file light_temt.c.
Referenced by light_temt_periodic().
|
static |
Definition at line 47 of file light_temt.c.
Referenced by light_temt_init(), and light_temt_periodic().