smoke
2.0.0.0
|
This file contains API for Smoke 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 | smoke_t |
Click ctx object definition. More... | |
struct | smoke_cfg_t |
Click configuration structure definition. More... | |
struct | smoke_set_registers_t |
Click registers object definition. More... | |
Functions | |
void | smoke_cfg_setup (smoke_cfg_t *cfg) |
Config Object Initialization function. More... | |
SMOKE_RETVAL | smoke_init (smoke_t *ctx, smoke_cfg_t *cfg) |
Initialization function. More... | |
void | smoke_default_cfg (smoke_t *ctx) |
Click Default Configuration function. More... | |
void | smoke_write_data (smoke_t *ctx, uint8_t wr_addr, uint8_t wr_data) |
Generic write function. More... | |
uint8_t | smoke_read_data (smoke_t *ctx, uint8_t rd_addr) |
Generic read function. More... | |
void | smoke_multi_read (smoke_t *ctx, uint8_t rd_addr, uint8_t *buffer, uint8_t cnt) |
Multi read function. More... | |
void | smoke_set_new_value (smoke_t *ctx, uint8_t reg, uint8_t mask, uint8_t value) |
Set new value function. More... | |
uint8_t | smoke_get_intrrupt (smoke_t *ctx, uint8_t flag) |
Get desired interrupt function. More... | |
void | smoke_enable_disable_interrupts (smoke_t *ctx, uint8_t interrupt_flag, uint8_t enable_flag) |
Enable or disable interrupt function. More... | |
void | smoke_setting_function (smoke_t *ctx, uint8_t flag, uint8_t mode) |
Set corresponding configuration register function. More... | |
void | smoke_setting_prox_and_amp (smoke_t *ctx, uint8_t flag, uint8_t write_data) |
Set corresponding amplitude or proximity threshold function. More... | |
void | smoke_enable_slot (smoke_t *ctx, uint8_t slot_num, uint8_t dev) |
Define slots in MultiLED mode function. More... | |
void | smoke_disable_slots (smoke_t *ctx) |
Disable slots in MultiLED mode function. More... | |
void | smoke_clear_fifo (smoke_t *ctx) |
Clearing FIFO pointers function. More... | |
void | smoke_fifo_setting (smoke_t *ctx, uint8_t flag, uint8_t samp_num) |
Set FIFO configuration register function. More... | |
uint8_t | smoke_get_write_ptr (smoke_t *ctx) |
Read the FIFO Write Pointer function. More... | |
uint8_t | smoke_get_read_ptr (smoke_t *ctx) |
Read the FIFO Read Pointer function. More... | |
float | smoke_read_temp_c (smoke_t *ctx) |
Read temperature in Centigrade function. More... | |
float | smoke_read_temp_f (smoke_t *ctx) |
Read temperature in Fahrenheit function. More... | |
void | smoke_reset (smoke_t *ctx) |
Reset device function. More... | |
uint8_t | smoke_read_device_id (smoke_t *ctx) |
Read device ID function. More... | |
uint32_t | smoke_get_red_val (smoke_t *ctx) |
Get Red value function. More... | |
uint32_t | smoke_get_ir_val (smoke_t *ctx) |
Get IR value function. More... | |
uint32_t | smoke_get_green_val (smoke_t *ctx) |
Get Green value function. More... | |
void | smoke_set_registers (smoke_t *ctx, smoke_set_registers_t *registers) |
Set registers values function. More... | |
uint8_t | smoke_check_int (smoke_t *ctx) |
Get Interrupt state function. More... | |
This file contains API for Smoke Click driver.