sht1x 2.0.0.0
|
Functions | |
void | sht1x_cfg_setup (sht1x_cfg_t *cfg) |
Config Object Initialization function. | |
SHT1X_RETVAL | sht1x_init (sht1x_t *ctx, sht1x_cfg_t *cfg) |
Initialization function. | |
void | sht1x_output_sda (sht1x_t *ctx, sht1x_cfg_t *cfg) |
Set pin on output. | |
void | sht1x_input_sda (sht1x_t *ctx, sht1x_cfg_t *cfg) |
Set pin on input. | |
void | sht1x_sda_high (sht1x_t *ctx) |
Set SDA high function. | |
void | sht1x_sda_low (sht1x_t *ctx) |
Set SDA low function. | |
uint8_t | sht1x_get_sda (sht1x_t *ctx) |
Check SDA state function. | |
void | sht1x_scl_high (sht1x_t *ctx) |
Set SCL high function. | |
void | sht1x_scl_low (sht1x_t *ctx) |
Set SCL low function. | |
float | sht1x_calc_temp (sht1x_t *ctx, uint16_t t) |
Calculate temperature function. | |
float | sht1x_calc_humi (sht1x_t *ctx, uint16_t h, uint16_t t) |
Calculate humidity function. | |
float sht1x_calc_humi | ( | sht1x_t * | ctx, |
uint16_t | h, | ||
uint16_t | t ) |
Calculate humidity function.
ctx | Click object. |
h | 12-bit value representing number of ticks |
t | 14-bit value representing number of ticks |
@description This function is used to calculate humidity.
float sht1x_calc_temp | ( | sht1x_t * | ctx, |
uint16_t | t ) |
Calculate temperature function.
ctx | Click object. |
t | 14-bit value representing number of ticks |
@description This function is used to calculate temperature.
void sht1x_cfg_setup | ( | sht1x_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t sht1x_get_sda | ( | sht1x_t * | ctx | ) |
Check SDA state function.
ctx | Click object. |
What is function job.
SHT1X_RETVAL sht1x_init | ( | sht1x_t * | ctx, |
sht1x_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.
void sht1x_input_sda | ( | sht1x_t * | ctx, |
sht1x_cfg_t * | cfg ) |
Set pin on input.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function Set pin on input.
void sht1x_output_sda | ( | sht1x_t * | ctx, |
sht1x_cfg_t * | cfg ) |
Set pin on output.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function sets pins on output.
void sht1x_scl_high | ( | sht1x_t * | ctx | ) |
Set SCL high function.
ctx | Click object. |
@description This function is used to set state of SDA pin.
void sht1x_scl_low | ( | sht1x_t * | ctx | ) |
Set SCL low function.
ctx | Click object. |
@description This function is used to set state of SDA pin.
void sht1x_sda_high | ( | sht1x_t * | ctx | ) |
Set SDA high function.
ctx | Click object. |
@description This function is used to set state of SDA pin.
void sht1x_sda_low | ( | sht1x_t * | ctx | ) |
Set SDA low function.
ctx | Click object. |
@description This function is used to set state of SDA pin.