shtan
2.0.0.0
|
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... | |
void shtan_cfg_setup | ( | shtan_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void shtan_default_cfg | ( | shtan_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
This function executes default configuration for SHT AN click.
shtan_data_t shtan_generic_read | ( | shtan_t * | ctx | ) |
Generic read function.
ctx | Click object. |
This function read ADC data.
SHTAN_RETVAL shtan_init | ( | shtan_t * | ctx, |
shtan_cfg_t * | cfg | ||
) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void shtan_reset | ( | shtan_t * | ctx | ) |
Hardware reset function.
ctx | Click object. |
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, sets to '1' state of the RST pin.
void shtan_set_mode | ( | shtan_t * | ctx, |
uint8_t | adc_mode | ||
) |
Set ADC mode function.
ctx | Click object. |
adc_mode | 8-bit ADC mode
|
Function sets signal output ADC mode of the SHT3x-ARP Humidity and Temperature Sensor IC on SHT AN Click.