spectrometer 2.0.0.0
|
This file contains API for Spectrometer 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 | spectrometer_t |
Click ctx object definition. More... | |
struct | spectrometer_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | spectrometer_cfg_setup (spectrometer_cfg_t *cfg) |
Config Object Initialization function. | |
SPECTROMETER_RETVAL | spectrometer_init (spectrometer_t *ctx, spectrometer_cfg_t *cfg) |
Initialization function. | |
void | spectrometer_generic_write (spectrometer_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | spectrometer_generic_read (spectrometer_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | spectrometer_pon (spectrometer_t *ctx) |
Set the power on bit function. | |
void | spectrometer_sp_en (spectrometer_t *ctx, uint8_t state) |
Set the spectral measurement enabled bit function. | |
void | spectrometer_smux_en (spectrometer_t *ctx) |
Starting the SMUX function. | |
uint8_t | spectrometer_get_smux_en (spectrometer_t *ctx) |
Reading and Polling the the SMUX Enable bit function. | |
uint8_t | spectrometer_get_data_ready (spectrometer_t *ctx) |
Reading and Polling the the AVALID bit function. | |
void | spectrometer_f1f4_clr_nir (spectrometer_t *ctx) |
SMUX Configuration for F1,F2,F3,F4,NIR,Clear function. | |
void | spectrometer_f5f8_clr_nir (spectrometer_t *ctx) |
SMUX Configuration for F5,F6,F7,F8,NIR,Clear function. | |
void | spectrometer_fd_cfg (spectrometer_t *ctx) |
Flicker Detect Configuration function. | |
void | spectrometer_reg_bank_cfg (spectrometer_t *ctx, uint8_t reg_bank) |
Select Register bank function. | |
void | spectrometer_def_cfg (spectrometer_t *ctx) |
Default configuration function. | |
void | spectrometer_raw_rd_val_mode_1 (spectrometer_t *ctx, uint8_t *adc_data) |
Raw Read Mode 1 function. | |
void | spectrometer_raw_rd_val_mode_2 (spectrometer_t *ctx, uint8_t *adc_data) |
Raw Read Mode 2 function. | |
uint8_t | spectrometer_flicker_detection (spectrometer_t *ctx) |
name function | |
uint8_t | spectrometer_get_int (spectrometer_t *ctx) |
Get Interrupt state function. | |
This file contains API for Spectrometer Click driver.