upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
Go to the source code of this file.
Data Structures | |
struct | _veml6070_context |
Functions | |
veml6070_context | veml6070_init (int bus) |
void | veml6070_close (veml6070_context dev) |
int16_t | veml6070_get_uv_intensity (veml6070_context dev) |
upm_result_t | veml6070_set_integration_time (veml6070_context dev, veml6070_integration_time_t time) |
Macros | |
#define | VEML6070_CTRL_REG 0x38 |
#define | VEML6070_SEQ1_DATA_BUF_REG 0x39 |
#define | VEML6070_SEQ2_DATA_BUF_REG 0x38 |
Typedefs | |
typedef struct _veml6070_context * | veml6070_context |
Enumerations | |
enum | veml6070_integration_time_t { HALF_T = 0, ONE_T, TWO_T, FOUR_T } |
veml6070_context veml6070_init | ( | int | bus | ) |
VEML6070 Initialization function
bus | I2C bus to use |
address | I2C address to use |
void veml6070_close | ( | veml6070_context | dev | ) |
VEML6070 Close function
dev | veml6070_context pointer |
int16_t veml6070_get_uv_intensity | ( | veml6070_context | dev | ) |
Function to get the UV values
dev | veml6070_context pointer |
upm_result_t veml6070_set_integration_time | ( | veml6070_context | dev, |
veml6070_integration_time_t | time | ||
) |
Function to set the integration time of the sensor
dev | veml6070_context pointer |
time | veml6070_integration_time_t |