temphum11 2.0.0.0
|
Functions | |
void | temphum11_cfg_setup (temphum11_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM11_RETVAL | temphum11_init (temphum11_t *ctx, temphum11_cfg_t *cfg) |
Initialization function. | |
void | temphum11_default_cfg (temphum11_t *ctx) |
Click Default Configuration function. | |
void | temphum11_write_config (temphum11_t *ctx, uint16_t config) |
Function for writing configuration device for measurement. | |
uint16_t | temphum11_read_data (temphum11_t *ctx, uint8_t reg) |
Functions for reading data from registers. | |
float | temphum11_get_temperature (temphum11_t *ctx, uint8_t temp_in) |
Functions for reading Temperature data. | |
float | temphum11_get_humidity (temphum11_t *ctx) |
Functions for reading Relative Huminidy data. | |
void temphum11_cfg_setup | ( | temphum11_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void temphum11_default_cfg | ( | temphum11_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for TempHum11 click.
float temphum11_get_humidity | ( | temphum11_t * | ctx | ) |
Functions for reading Relative Huminidy data.
ctx | Click object. |
description This function reads relative huminidy data
float temphum11_get_temperature | ( | temphum11_t * | ctx, |
uint8_t | temp_in ) |
Functions for reading Temperature data.
ctx | Click object. |
temp_in | Macro for determinating temperature unit ... (FAHRENHEIT, KELVIN, CELSIUS) |
@description This function reads temperature data in desired unit.
TEMPHUM11_RETVAL temphum11_init | ( | temphum11_t * | ctx, |
temphum11_cfg_t * | cfg ) |
Initialization function.
temphum11 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t temphum11_read_data | ( | temphum11_t * | ctx, |
uint8_t | reg ) |
Functions for reading data from registers.
ctx | Click object. |
reg | Register address. |
@description This function reads data from the desired register.
void temphum11_write_config | ( | temphum11_t * | ctx, |
uint16_t | config ) |
Function for writing configuration device for measurement.
ctx | Click object. |
config | Data to be written. |
@description This function writes configuration device for measurement.