si114x_algorithm.h File Reference

Swipe algorithm for Si114x. More...

#include "em_device.h"
#include "si114x_functions.h"
Include dependency graph for si114x_algorithm.h:

Go to the source code of this file.

Defines

#define SI1147_ADDR   0xc0
 I2C device address for Si1147 on weather station board.

Enumerations

enum  gesture_t {
  NONE,
  UP,
  DOWN,
  LEFT,
  RIGHT,
  TAP
}
 

Si114x gestures.

More...

Functions

gesture_t Si1147_NewSample (I2C_TypeDef *i2c, uint8_t addr, uint32_t timestamp)
 Reads new measurement data and processes a new sample.
int Si1147_ConfigureDetection (I2C_TypeDef *i2c, uint8_t addr, int slow)
 Initializes and configures the Si1147 sensor.
int Si1147_SetInterruptOutputEnable (I2C_TypeDef *i2c, uint8_t addr, int enable)
 Enables or disables the Si1147 interrupt pin.
int Si1147_GetInterruptOutputEnable (I2C_TypeDef *i2c, uint8_t addr, int *enable)
 Get the enable status of the Si1147 interrupt pin.
int Si1147_Detect_Device (I2C_TypeDef *i2c, uint8_t addr)
 Detects whether Si1147 is on the i2c bus.
int Si1147_MeasureUVAndObjectPresent (I2C_TypeDef *i2c, uint8_t addr, uint16_t *uvIndex, int *objectDetect)
 Reads the UV measurement data and checks for object in proximity to the Si1147.

Detailed Description

Swipe algorithm for Si114x.

Version:
3.20.5

License

(C) Copyright 2014 Silicon Labs, http://www.silabs.com

This file is licensensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.

Definition in file si114x_algorithm.h.