shtan 2.0.0.0
|
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. | |
void shtan_cfg_setup | ( | shtan_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
err_t shtan_init | ( | shtan_t * | ctx, |
shtan_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
err_t shtan_meas_humidity | ( | shtan_t * | ctx, |
float * | data_out ) |
Humidity measure function.
ctx | Click object. |
data_out | Output relative humidity value [%]. |
@description This function measures a relative humidity level.
err_t shtan_meas_temperature | ( | shtan_t * | ctx, |
float * | data_out, | ||
shtan_temp_mode_t | sel ) |
Temperature measure function.
ctx | Click object. |
data_out | Output temperature value [deg C/F]. |
sel | 0 - deg C, 1 - deg F. |
@description This function measures a temperature results converting them to the selected unit.
err_t shtan_read_adc | ( | shtan_t * | ctx, |
uint16_t * | data_out ) |
ADC read function.
ctx | Click object. |
data_out | Output read data. |
@description This function reads the ADC converted data.
err_t shtan_read_an_voltage | ( | shtan_t * | ctx, |
float * | data_out ) |
AN voltage read function.
ctx | Click object. |
data_out | Output read voltage value. |
@description This function reads and calculates the voltage level of the AN pin.
void shtan_reset | ( | shtan_t * | ctx | ) |
Hardware reset function.
ctx | Click object. |
@description Function hardware reset the SHT3x-ARP Humidity and Temperature Sensor IC on SHT AN click by cleared to '0' state of the RST pin, wait the 100 ms, then sets to '1' state of the RST pin and wait for 1 second to establish the device.
void shtan_set_mode | ( | shtan_t * | ctx, |
shtan_adc_mode_t | sel ) |
Set ADC mode function.
ctx | Click object. |
sel | - 0 ( SHTAN_SET_ADC_MODE_TEMP ) - Set signal output, ADC mode temperature.
|
@description Function sets signal output ADC mode of the SHT3x-ARP Humidity and Temperature Sensor IC on SHT AN Click.