spectral2 2.0.0.0
|
This file contains API for Spectral 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 | spectral2_t |
Click ctx object definition. More... | |
struct | spectral2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | spectral2_cfg_setup (spectral2_cfg_t *cfg) |
Config Object Initialization function. | |
SPECTRAL2_RETVAL | spectral2_init (spectral2_t *ctx, spectral2_cfg_t *cfg) |
Initialization function. | |
void | spectral2_default_cfg (spectral2_t *ctx) |
Click Default Configuration function. | |
void | spectral2_generic_write (spectral2_t *ctx, uint8_t reg, uint8_t data_buf) |
Generic write function. | |
uint8_t | spectral2_generic_read (spectral2_t *ctx, uint8_t reg) |
Generic read function. | |
void | spectral2_reset (spectral2_t *ctx) |
Reset function. | |
void | spectral2_set_integration_time (spectral2_t *ctx, uint8_t cur_time) |
Integration time function. | |
uint8_t | spectral2_get_temperature (spectral2_t *ctx) |
Read temperature function. | |
void | spectral2_led_control (spectral2_t *ctx, uint8_t led_data) |
Led ctrl and setting function. | |
int16_t | spectral2_get_data (spectral2_t *ctx, uint8_t data_reg) |
Read data function. | |
int32_t | spectral2_get_calibrated_data (spectral2_t *ctx, uint8_t data_reg) |
Reads calibrated data function. | |
This file contains API for Spectral 2 Click driver.