thermo9  2.0.0.0
Functions
Public function

Functions

void thermo9_cfg_setup (thermo9_cfg_t *cfg)
 Config Object Initialization function. More...
 
THERMO9_RETVAL thermo9_init (thermo9_t *ctx, thermo9_cfg_t *cfg)
 Initialization function. More...
 
void thermo9_generic_write (thermo9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function. More...
 
void thermo9_generic_read (thermo9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function. More...
 
void thermo9_send_cmd (thermo9_t *ctx, uint8_t cmd_byte)
 Send command function. More...
 
void thermo9_calibation (thermo9_t *ctx)
 Calibration function. More...
 
float thermo9_read_temp (thermo9_t *ctx)
 Read temperature function. More...
 

Detailed Description

Function Documentation

◆ thermo9_calibation()

void thermo9_calibation ( thermo9_t ctx)

Calibration function.

Parameters
ctxClick object.

@description Function resets and calibrates the device in order for it to work properly.

Note
This function must be used once in order to get calibrations!

◆ thermo9_cfg_setup()

void thermo9_cfg_setup ( thermo9_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.

◆ thermo9_generic_read()

void thermo9_generic_read ( thermo9_t ctx,
uint8_t  reg,
uint8_t *  data_buf,
uint8_t  len 
)

Generic read function.

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

@description This function reads data from the desired register.

◆ thermo9_generic_write()

void thermo9_generic_write ( thermo9_t ctx,
uint8_t  reg,
uint8_t *  data_buf,
uint8_t  len 
)

Generic write function.

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

@description This function writes data to the desired register.

◆ thermo9_init()

THERMO9_RETVAL thermo9_init ( thermo9_t ctx,
thermo9_cfg_t cfg 
)

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ thermo9_read_temp()

float thermo9_read_temp ( thermo9_t ctx)

Read temperature function.

Parameters
ctxClick object.
Returns
result float temperature value in degree centigrade.

@description Function is used to read temperature in degree centigrade.

◆ thermo9_send_cmd()

void thermo9_send_cmd ( thermo9_t ctx,
uint8_t  cmd_byte 
)

Send command function.

Parameters
ctxClick object.
cmd_byteCommand Byte.

@description Function is used to send the command to the device.