Contiki-NG
|
Driver for the Sensortag OPT-3001 light sensor. More...
#include "contiki.h"
#include "lib/sensors.h"
#include "sys/ctimer.h"
#include "dev/i2c-arch.h"
#include "board-conf.h"
#include "opt-3001-sensor.h"
#include <Board.h>
#include <ti/drivers/I2C.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
Go to the source code of this file.
Functions | |
static bool | sensor_enable (bool enable) |
Turn the sensor on/off. | |
static void | notify_ready_cb (void *unused) |
Callback when sensor is ready to read data from. | |
static int | value (int type) |
Returns a reading from the sensor. | |
static int | configure (int type, int enable) |
Configuration function for the OPT3001 sensor. | |
static int | status (int type) |
Returns the status of the sensor. | |
Driver for the Sensortag OPT-3001 light sensor.
Definition in file opt-3001-sensor.c.