The friendly Operating System for the Internet of Things
veml6070.h File Reference

Device driver interface for the VEML6070 UV sensor. More...

Detailed Description

#include "saul.h"
#include "periph/i2c.h"
+ Include dependency graph for veml6070.h:

Go to the source code of this file.

Data Structures

struct  veml6070_params_t
 Device initialization parameters. More...
struct  veml6070_t
 Device descriptor for the VEML6070 sensor. More...


typedef enum veml6070_integrationtime veml6070_itime_t
 Integration times.


enum  veml6070_integrationtime { VEML6070_HALF_T = 0, VEML6070_1_T, VEML6070_2_T, VEML6070_4_T }
 Integration times. More...
enum  { VEML6070_OK = 0, VEML6070_ERR_I2C }
 Status and error return codes. More...


int veml6070_init (veml6070_t *dev, const veml6070_params_t *params)
 Initialize the given VEML6070 device. More...
uint16_t veml6070_read_uv (veml6070_t *dev)
 Read UV index from the given VEML6070 device. More...