uv2 2.0.0.0
|
This file contains API for UV 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | uv2_t |
Click ctx object definition. More... | |
struct | uv2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | uv2_cfg_setup (uv2_cfg_t *cfg) |
Config Object Initialization function. | |
UV2_RETVAL | uv2_init (uv2_t *ctx, uv2_cfg_t *cfg) |
Initialization function. | |
void | uv2_default_cfg (uv2_t *ctx) |
Click Default Configuration function. | |
void | uv2_generic_write (uv2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | uv2_generic_read (uv2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | uv2_write_data (uv2_t *ctx, uint8_t reg_address, uint8_t write_data) |
Write 16-bit data function. | |
uint16_t | uv2_read_data (uv2_t *ctx, uint8_t reg_address) |
Read 16-bit data from 8-bit address function. | |
void | uv2_set_config (uv2_t *ctx, uint8_t config_value) |
Set configuration function. | |
void | uv2_set_integration_time (uv2_t *ctx, uint16_t intg_time) |
Set integration time function. | |
void | uv2_set_normal_dynamic (uv2_t *ctx) |
Set normal dynamic function. | |
void | uv2_set_high_dynamic (uv2_t *ctx) |
Set high dynamic function. | |
void | uv2_set_trigger_measurement (uv2_t *ctx) |
Set trigger one measurement function. | |
void | uv2_set_active_force_mode (uv2_t *ctx, uint8_t force_mode) |
Set active force mode function. | |
void | uv2_set_power_on (uv2_t *ctx) |
Set power ON function. | |
void | uv2_set_power_off (uv2_t *ctx) |
Set power OFF function. | |
uint8_t | uv2_check_id (uv2_t *ctx) |
Check sensor ID function. | |
uint16_t | uv2_get_uva (uv2_t *ctx) |
Get UVA data function. | |
uint16_t | uv2_get_uvb (uv2_t *ctx) |
Get UVB data function. | |
float | uv2_get_uv_index (uv2_t *ctx) |
Get UV index function. | |
This file contains API for UV 2 Click driver.