irsense2 2.0.0.0
|
This file contains API for IR Sense 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 | irsense2_t |
Click ctx object definition. More... | |
struct | irsense2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | irsense2_cfg_setup (irsense2_cfg_t *cfg) |
Config Object Initialization function. | |
IRSENSE2_RETVAL | irsense2_init (irsense2_t *ctx, irsense2_cfg_t *cfg) |
Initialization function. | |
void | irsense2_default_cfg (irsense2_t *ctx) |
Click Default Configuration function. | |
void | irsense2_generic_write (irsense2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | irsense2_generic_read (irsense2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | irsense2_data_read (irsense2_t *ctx, float *ir_data, float *temp_data) |
Data function. | |
int16_t | irsense2_get_ir_data (irsense2_t *ctx) |
IR Data read function. | |
int16_t | irsense2_get_temperature_data (irsense2_t *ctx) |
Temperatire Data read function. | |
void | irsense2_get_int (irsense2_t *ctx) |
Interrupt factor function. | |
uint8_t | irsense_human_detected (irsense2_t *ctx, float ir_data) |
Human detection function. | |
void | irsense2_get_int_pin (irsense2_t *ctx) |
Int_pin state function. | |
This file contains API for IR Sense 2 Click driver.