ambient5 2.0.0.0
|
This file contains API for Ambient 5 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 | ambient5_t |
Click ctx object definition. More... | |
struct | ambient5_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | ambient5_cfg_setup (ambient5_cfg_t *cfg) |
Config Object Initialization function. | |
AMBIENT5_RETVAL | ambient5_init (ambient5_t *ctx, ambient5_cfg_t *cfg) |
Initialization function. | |
void | ambient5_default_cfg (ambient5_t *ctx) |
Default configuration function. | |
void | ambient5_set_register (ambient5_t *ctx, uint8_t reg_addr, uint16_t reg_value) |
Set register function. | |
uint16_t | ambient5_get_register (ambient5_t *ctx, uint8_t reg) |
Get register function. | |
float | ambient5_get_resolution (ambient5_t *ctx) |
Get resolution. | |
uint16_t | ambient5_get_refresh_time (ambient5_t *ctx) |
Get refresh time. | |
float | ambient5_get_high_resolution_light_level (ambient5_t *ctx) |
Get high resolution light level. | |
float | ambient5_get_white_channel_light_level (ambient5_t *ctx) |
Get white channel light level. | |
void | ambient5_set_low_light_level_threshold (ambient5_t *ctx, float low_light_level_threshold) |
Set low light level threshold. | |
void | ambient5_set_high_light_level_threshold (ambient5_t *ctx, float high_light_level_threshold) |
Set high light level threshold. | |
void | ambient5_power_on (ambient5_t *ctx) |
Set high light level threshold. | |
uint8_t | ambient5_checkIntPin (ambient5_t *ctx) |
Checking INT pin state. | |
This file contains API for Ambient 5 Click driver.