thermo16  2.0.0.0
Functions
Public function

Functions

void thermo16_cfg_setup (thermo16_cfg_t *cfg)
 Config Object Initialization function. More...
 
THERMO16_RETVAL thermo16_init (thermo16_t *ctx, thermo16_cfg_t *cfg)
 Initialization function. More...
 
thermo16_data_t thermo16_generic_read (thermo16_t *ctx)
 Generic read function. More...
 
float thermo16_get_temperature (thermo16_t *ctx, uint8_t temp_format)
 Temperature function. More...
 

Detailed Description

Function Documentation

◆ thermo16_cfg_setup()

void thermo16_cfg_setup ( thermo16_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.

◆ thermo16_generic_read()

thermo16_data_t thermo16_generic_read ( thermo16_t ctx)

Generic read function.

Parameters
ctxClick object.
Returns
ADC data

@description This function read ADC data.

◆ thermo16_get_temperature()

float thermo16_get_temperature ( thermo16_t ctx,
uint8_t  temp_format 
)

Temperature function.

Parameters
ctxClick object.
temp_formatTemperature format ( CELSIUS, KELVIN, FAHRENHEIT )
Returns
Temperature data

@description This function read Temperature data.

◆ thermo16_init()

THERMO16_RETVAL thermo16_init ( thermo16_t ctx,
thermo16_cfg_t cfg 
)

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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