moisture 2.0.0.0
|
This file contains API for Moisture 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 | moisture_t |
Click ctx object definition. More... | |
struct | moisture_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | moisture_cfg_setup (moisture_cfg_t *cfg) |
Config Object Initialization function. | |
MOISTURE_RETVAL | moisture_init (moisture_t *ctx, moisture_cfg_t *cfg) |
Initialization function. | |
void | moisture_default_cfg (moisture_t *ctx) |
Click Default Configuration function. | |
void | moisture_generic_write (moisture_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | moisture_generic_read (moisture_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | moisture_write_word (moisture_t *ctx, uint8_t reg, uint16_t data_in) |
Write word function. | |
uint16_t | moisture_read_word (moisture_t *ctx, uint8_t reg) |
Read word function. | |
void | moisture_soft_reset (moisture_t *ctx) |
Soft reset function. | |
void | moisture_cfg (moisture_t *ctx, uint16_t gain, uint16_t offset, uint16_t clk_div) |
Configure device function. | |
uint8_t | moisture_get_data (moisture_t *ctx) |
Measurement data function. | |
void | moisture_cal (moisture_t *ctx) |
Chip calibration function. | |
uint8_t | moisture_check_interrupt (moisture_t *ctx) |
Soft reset function. | |
This file contains API for Moisture Click driver.