hydroprobe 2.0.0.0
hydroprobe.h File Reference

This file contains API for Hydro Probe 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  hydroprobe_t
 Click ctx object definition. More...
 
struct  hydroprobe_cfg_t
 Click configuration structure definition. More...
 

Macros

#define HYDROPROBE_MAP_MIKROBUS(cfg, mikrobus)
 
#define HYDROPROBE_RETVAL   uint8_t
 
#define HYDROPROBE_OK   0x00
 
#define HYDROPROBE_INIT_ERROR   0xFF
 
#define HYDROPROBE_SLAVE_ADR   0x4D
 

Functions

void hydroprobe_cfg_setup (hydroprobe_cfg_t *cfg)
 Config Object Initialization function.
 
HYDROPROBE_RETVAL hydroprobe_init (hydroprobe_t *ctx, hydroprobe_cfg_t *cfg)
 Initialization function.
 
void hydroprobe_generic_write (hydroprobe_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void hydroprobe_generic_read (hydroprobe_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
uint16_t hydroprobe_read_raw (hydroprobe_t *ctx)
 Read raw data function.
 
uint16_t hydroprobe_avg_val (hydroprobe_t *ctx)
 Get average value function.
 
uint16_t hydroprobe_max_val (hydroprobe_t *ctx)
 Get maximum value function.
 
uint16_t hydroprobe_min_val (hydroprobe_t *ctx)
 Get minimum value function.
 
uint8_t hydroprobe_rel_env_hum (hydroprobe_t *ctx, uint16_t dry_val, uint16_t wet_val)
 Get Relative humidity of the environment function.
 

Detailed Description

This file contains API for Hydro Probe Click driver.