EFM32 Jade Gecko 12 Software Documentation
efm32jg12-doc-5.1.2
|
Si114x UV Index measurement.
Copyright 2015 Silicon Labs, Inc. http://www.silabs.com
This file is licensed 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_uv_index.h.
Go to the source code of this file.
Functions | |
int | Si114x_ConfigureUV (int fullInit, HANDLE *handle) |
Initializes and configures the Si1146 sensor for UV index measurements. More... | |
int | Si114x_EnableVisRange (int vis_range_bit) |
Set the VIS_RANGE bit of the optical sensor Si114x. More... | |
int | Si114x_MeasureUVIndex (u16 *uvIndex) |
Reads the UV index measurement data from the Si114x. More... | |
int Si114x_ConfigureUV | ( | int | fullInit, |
HANDLE * | handle | ||
) |
Initializes and configures the Si1146 sensor for UV index measurements.
[in] | fullInit | The I2C peripheral to use (not used). |
[in] | handle | The si114x handle for programmer's toolkit |
Definition at line 110 of file si114x_uv_index.c.
References si114x_get_calibration(), si114x_handle, si114x_set_ucoef(), Si114xParamSet(), Si114xReset(), Si114xWriteToRegister(), and UV_TASKLIST.
int Si114x_EnableVisRange | ( | int | vis_range_bit | ) |
Set the VIS_RANGE bit of the optical sensor Si114x.
[in] | vis_range_bit | the boolean value to set the bit to |
Definition at line 88 of file si114x_uv_index.c.
References si114x_handle, and Si114xParamSet().
int Si114x_MeasureUVIndex | ( | u16 * | uvIndex | ) |
Reads the UV index measurement data from the Si114x.
[out] | uvIndex | The UV index read from the sensor |
Definition at line 40 of file si114x_uv_index.c.
References si114x_handle, Si114xPsAlsForce(), Si114xReadFromRegister(), and Si114xWriteToRegister().