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

Device driver interface for the ISL29020 light sensor. More...

Detailed Description

#include <stdint.h>
#include "periph/i2c.h"
+ Include dependency graph for isl29020.h:

Go to the source code of this file.

Data Structures

struct  isl29020_t
 Device descriptor for ISL29020 sensors. More...
 
struct  isl29020_params_t
 Data structure holding the full set of configuration parameters. More...
 

Macros

#define ISL29020_DEFAULT_ADDRESS   0x44
 The sensors default I2C address.
 

Enumerations

enum  isl29020_mode_t { ISL29020_MODE_AMBIENT = 0, ISL29020_MODE_IR = 1 }
 Possible modes for the ISL29020 sensor. More...
 
enum  isl29020_range_t { ISL29020_RANGE_1K = 0, ISL29020_RANGE_4K = 1, ISL29020_RANGE_16K = 2, ISL29020_RANGE_64K = 3 }
 Possible range values for the ISL29020 sensor. More...
 

Functions

int isl29020_init (isl29020_t *dev, i2c_t i2c, uint8_t address, isl29020_range_t range, isl29020_mode_t mode)
 Initialize a new ISL29020 device. More...
 
int isl29020_read (isl29020_t *dev)
 Read a lighting value from the sensor, the result is given in lux. More...
 
int isl29020_enable (isl29020_t *dev)
 Enable the given sensor. More...
 
int isl29020_disable (isl29020_t *dev)
 Disable the given sensor. More...