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.
 

Detailed Description

Function Documentation

◆ temphum11_cfg_setup()

void temphum11_cfg_setup ( temphum11_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ temphum11_default_cfg()

void temphum11_default_cfg ( temphum11_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for TempHum11 click.

◆ temphum11_get_humidity()

float temphum11_get_humidity ( temphum11_t * ctx)

Functions for reading Relative Huminidy data.

Parameters
ctxClick object.
Returns
Relative Huminidy data in [RH]

description This function reads relative huminidy data

◆ temphum11_get_temperature()

float temphum11_get_temperature ( temphum11_t * ctx,
uint8_t temp_in )

Functions for reading Temperature data.

Parameters
ctxClick object.
temp_inMacro for determinating temperature unit ... (FAHRENHEIT, KELVIN, CELSIUS)
Returns
temperature data

@description This function reads temperature data in desired unit.

◆ temphum11_init()

TEMPHUM11_RETVAL temphum11_init ( temphum11_t * ctx,
temphum11_cfg_t * cfg )

Initialization function.

Parameters
temphum11Click object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ temphum11_read_data()

uint16_t temphum11_read_data ( temphum11_t * ctx,
uint8_t reg )

Functions for reading data from registers.

Parameters
ctxClick object.
regRegister address.
Returns
16-bit data that is reads from the register.

@description This function reads data from the desired register.

◆ temphum11_write_config()

void temphum11_write_config ( temphum11_t * ctx,
uint16_t config )

Function for writing configuration device for measurement.

Parameters
ctxClick object.
configData to be written.

@description This function writes configuration device for measurement.