thermo3 2.0.0.0
Public function

Functions

void thermo3_cfg_setup (thermo3_cfg_t *cfg)
 Config Object Initialization function.
 
THERMO3_RETVAL thermo3_init (thermo3_t *ctx, thermo3_cfg_t *cfg)
 Initialization function.
 
void thermo3_default_cfg (thermo3_t *ctx)
 Click Default Configuration function.
 
void thermo3_generic_write (thermo3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void thermo3_generic_read (thermo3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
float get_temperature (thermo3_t *ctx)
 Gets temperature.
 

Detailed Description

Function Documentation

◆ get_temperature()

float get_temperature ( thermo3_t * ctx)

Gets temperature.

Parameters
ctxClick object.

@description This function gets temperature data from TMP102 sensor.

◆ thermo3_cfg_setup()

void thermo3_cfg_setup ( thermo3_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.

◆ thermo3_default_cfg()

void thermo3_default_cfg ( thermo3_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Thermo3 click.

◆ thermo3_generic_read()

void thermo3_generic_read ( thermo3_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic read function.

Parameters
ctxClick object.
regRegister address.
data_bufOutput data buf
lenNumber of the bytes to be read

@description This function reads data from the desired register.

◆ thermo3_generic_write()

void thermo3_generic_write ( thermo3_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic write function.

Parameters
ctxClick object.
regRegister address.
data_bufData buf to be written.
lenNumber of the bytes in data buf.

@description This function writes data to the desired register.

◆ thermo3_init()

THERMO3_RETVAL thermo3_init ( thermo3_t * ctx,
thermo3_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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