Device driver interface for the Si114x sensors family. More...

Detailed Description

Device driver interface for the Si114x sensors family.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr Bas Stottelaar basst.nosp@m.otte.nosp@m.laar@.nosp@m.gmai.nosp@m.l.com

Definition in file si114x.h.

#include "saul.h"
#include "periph/i2c.h"
+ Include dependency graph for si114x.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  si114x_params_t
 Device initialization parameters. More...
 
struct  si114x_t
 Device descriptor for the Si114x sensor. More...
 

Enumerations

enum  si114x_ret_code_t { SI114X_OK, SI114X_ERR_I2C, SI114X_ERR_NODEV }
 Initialization return codes.
 
enum  si114x_led_current_t {
  SI114X_PS_LED1 = 1, SI114X_PS_LED2, SI114X_PS_LED3, SI114X_PS_LED4,
  SI114X_PS_LED5, SI114X_PS_LED6, SI114X_PS_LED7, SI114X_PS_LED8,
  SI114X_PS_LED9, SI114X_PS_LED10, SI114X_PS_LED11, SI114X_PS_LED12,
  SI114X_PS_LED13, SI114X_PS_LED14, SI114X_PS_LED15
}
 Active LED current parameters. More...
 

Functions

int8_t si114x_init (si114x_t *dev, const si114x_params_t *params)
 Initialize the given Si114x device. More...
 
uint16_t si114x_read_uv (si114x_t *dev)
 Read UV index from the given Si114x device. More...
 
uint16_t si114x_read_ir (si114x_t *dev)
 Read IR light value from the given Si114x device, returned in lx. More...
 
uint16_t si114x_read_visible (si114x_t *dev)
 Read visible light value from the given Si114x device, returned in lx. More...
 
uint16_t si114x_read_distance (si114x_t *dev)
 Read distance measure from the given Si114x device, returned in ADC counts. More...
 
uint8_t si114x_read_response (si114x_t *dev)
 Read the response register. More...