shtan  2.0.0.0
Data Structures | Macros | Typedefs | Functions
shtan.h File Reference

This file contains API for SHT AN Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"

Go to the source code of this file.

Data Structures

struct  shtan_t
 Click ctx object definition. More...
 
struct  shtan_cfg_t
 Click configuration structure definition. More...
 

Macros

#define SHTAN_MAP_MIKROBUS(cfg, mikrobus)
 
#define SHTAN_RETVAL   uint8_t
 
#define SHTAN_OK   0x00
 
#define SHTAN_INIT_ERROR   0xFF
 
#define SHTAN_SET_ADC_MODE_TEMP   0
 
#define SHTAN_SET_ADC_MODE_HUM   1
 
#define SHTAN_V_REF_2_048_mV   2.048
 
#define SHTAN_V_REF_3_0_mV   3.0
 
#define SHTAN_V_REF_3_3_mV   3.3
 
#define SHTAN_V_DD_3_3_mV   3.3
 
#define SHTAN_V_DD_5_0_mV   5.0
 
#define SHTAN_ADC_RES_10_BIT   1024.0
 
#define SHTAN_ADC_RES_12_BIT   4096.0
 
#define SHTAN_ADC_RES_14_BIT   16383.0
 

Typedefs

typedef uint16_t shtan_data_t
 Analog data type. More...
 

Functions

void shtan_cfg_setup (shtan_cfg_t *cfg)
 Config Object Initialization function. More...
 
SHTAN_RETVAL shtan_init (shtan_t *ctx, shtan_cfg_t *cfg)
 Initialization function. More...
 
void shtan_default_cfg (shtan_t *ctx)
 Click Default Configuration function. More...
 
shtan_data_t shtan_generic_read (shtan_t *ctx)
 Generic read function. More...
 
void shtan_set_mode (shtan_t *ctx, uint8_t adc_mode)
 Set ADC mode function. More...
 
void shtan_reset (shtan_t *ctx)
 Hardware reset function. More...
 

Detailed Description

This file contains API for SHT AN Click driver.