shtan 2.0.0.0
|
This file contains API for SHT AN Click driver. More...
#include "drv_digital_out.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) |
Enumerations | |
enum | shtan_adc_mode_t { SHTAN_SET_ADC_MODE_TEMP , SHTAN_SET_ADC_MODE_HUM } |
Click adc mode descriptors. More... | |
enum | shtan_temp_mode_t { SHTAN_SET_TEMP_MODE_DEG_C , SHTAN_SET_TEMP_MODE_DEG_F } |
Click temperature unit mode descriptors. More... | |
Functions | |
void | shtan_cfg_setup (shtan_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | shtan_init (shtan_t *ctx, shtan_cfg_t *cfg) |
Initialization function. | |
err_t | shtan_read_adc (shtan_t *ctx, uint16_t *data_out) |
ADC read function. | |
err_t | shtan_read_an_voltage (shtan_t *ctx, float *data_out) |
AN voltage read function. | |
err_t | shtan_meas_temperature (shtan_t *ctx, float *data_out, shtan_temp_mode_t sel) |
Temperature measure function. | |
err_t | shtan_meas_humidity (shtan_t *ctx, float *data_out) |
Humidity measure function. | |
void | shtan_set_mode (shtan_t *ctx, shtan_adc_mode_t sel) |
Set ADC mode function. | |
void | shtan_reset (shtan_t *ctx) |
Hardware reset function. | |
This file contains API for SHT AN Click driver.