thermo7 2.0.0.0
Public function

Functions

void thermo7_cfg_setup (thermo7_cfg_t *cfg)
 Config Object Initialization function.
 
THERMO7_RETVAL thermo7_init (thermo7_t *ctx, thermo7_cfg_t *cfg)
 Initialization function.
 
void thermo7_generic_write (thermo7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void thermo7_generic_read (thermo7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
float thermo7_read_ambient_temperature (thermo7_t *ctx)
 Functions for reads ambient temperature.
 
void thermo7_set_configuration (thermo7_t *ctx, uint8_t configuration)
 Functions for configuration chip and measurement.
 
int16_t thermo7_get_hysteresis_temperature (thermo7_t *ctx)
 Functions for reads Hysteresis Temperature.
 
void thermo7_set_hysteresis_temperature (thermo7_t *ctx, int8_t temperature)
 Functions for settings Hysteresis Temperature.
 
int16_t thermo7_get_limit_temperature (thermo7_t *ctx)
 Functions for get Limit Temperature.
 
void thermo7_set_limit_temperature (thermo7_t *ctx, int16_t temperature)
 Functions for settings limit Temperature.
 
uint8_t thermo7_get_interrupt (thermo7_t *ctx)
 Functions for reads state of interrupt pins.
 
void thermo7_set_resolution (thermo7_t *ctx, uint8_t resolution)
 Functions for settings ADC resolution measurement.
 

Detailed Description

Function Documentation

◆ thermo7_cfg_setup()

void thermo7_cfg_setup ( thermo7_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.

◆ thermo7_generic_read()

void thermo7_generic_read ( thermo7_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.

◆ thermo7_generic_write()

void thermo7_generic_write ( thermo7_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.

◆ thermo7_get_hysteresis_temperature()

int16_t thermo7_get_hysteresis_temperature ( thermo7_t * ctx)

Functions for reads Hysteresis Temperature.

Parameters
ctxClick object.

@description This fuction gets Hysteresis Temperature.

◆ thermo7_get_interrupt()

uint8_t thermo7_get_interrupt ( thermo7_t * ctx)

Functions for reads state of interrupt pins.

Parameters
ctxClick object.

@description This fuction reads state of interrupt pins.

◆ thermo7_get_limit_temperature()

int16_t thermo7_get_limit_temperature ( thermo7_t * ctx)

Functions for get Limit Temperature.

Parameters
ctxClick object.

@description This function gets limit temperature.

◆ thermo7_init()

THERMO7_RETVAL thermo7_init ( thermo7_t * ctx,
thermo7_cfg_t * cfg )

Initialization function.

Parameters
thermo7Click object.
cfgClick configuration structure.

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

◆ thermo7_read_ambient_temperature()

float thermo7_read_ambient_temperature ( thermo7_t * ctx)

Functions for reads ambient temperature.

Parameters
ctxClick object.

@description Temperature register that contains 9-bit to 12-bit temperature data. ( 0.5�C to 0.0625�C resolutions, respectively ) The lower limit of reading the temperature is -55 �C and the upper limit is 125 �C.

◆ thermo7_set_configuration()

void thermo7_set_configuration ( thermo7_t * ctx,
uint8_t configuration )

Functions for configuration chip and measurement.

Parameters
ctxClick object.
regData which be written in configuration register.

@description Options for configuration: ONE-SHOT ( Enable or Disable ), ADC RESOLUTION ( 9bit - 0.5 C, 10bit - 0.25 C, 11bit - 0.125 C or 12bit - 0.0625 C) FAULT QUEUE ( 1, 2, 4 or 6 ) ALERT POLARITY ( Active HIGH or LOW ) COMP/INT ( Interrupt mode or Comparator mode ) SHUTDOWN ( Enable or Disable )

Power - up default: ONE-SHOT ( Disable ), ADC RESOLUTION ( 9bit - 0.5 �C ) FAULT QUEUE ( 1 ) ALERT POLARITY ( Active LOW ) COMP/INT ( Comparator mode ) SHUTDOWN ( Disable )

◆ thermo7_set_hysteresis_temperature()

void thermo7_set_hysteresis_temperature ( thermo7_t * ctx,
int8_t temperature )

Functions for settings Hysteresis Temperature.

Parameters
ctxClick object.
temperatureData which be written in Hysteresis register.

@description This register is used to set a hysteresis for the Temperature set Limit. Therefore, the data represents a minimum temperature limit. The power-up default value of THYST register is 75�C.

◆ thermo7_set_limit_temperature()

void thermo7_set_limit_temperature ( thermo7_t * ctx,
int16_t temperature )

Functions for settings limit Temperature.

Parameters
ctxClick object.

@description This fuction sets limit temperature.

◆ thermo7_set_resolution()

void thermo7_set_resolution ( thermo7_t * ctx,
uint8_t resolution )

Functions for settings ADC resolution measurement.

Parameters
ctxClick object.
resolutionResolution which be written in configuration register.

@description Options for configuration: ADC RESOLUTION: 9bit - 0.5 C ( Power-up default ), 10bit - 0.25 C, 11bit - 0.125 C, 12bit - 0.0625 C