thermo 2.0.0.0
thermo.h File Reference

This file contains API for THERMO Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  thermo_t
 Click ctx object definition. More...
 
struct  thermo_cfg_t
 Click configuration structure definition. More...
 

Macros

#define THERMO_MAP_MIKROBUS(cfg, mikrobus)
 
#define THERMO_RETVAL   uint8_t
 
#define THERMO_OK   0x00
 
#define THERMO_INIT_ERROR   0xFF
 

Functions

void thermo_cfg_setup (thermo_cfg_t *cfg)
 Config Object Initialization function.
 
THERMO_RETVAL thermo_init (thermo_t *ctx, thermo_cfg_t *cfg)
 Initialization function.
 
uint32_t thermo_read_data (thermo_t *ctx)
 Read data from sensor function.
 
float thermo_get_temperature (thermo_t *ctx)
 Get thermocouple temperature function.
 
float thermo_get_junction_temperature (thermo_t *ctx)
 Get reference junction temperature function.
 
uint8_t thermo_check_fault (thermo_t *ctx)
 Check fault states function.
 
uint8_t thermo_short_circuited_vcc (thermo_t *ctx)
 Check short-circuited to Vcc function.
 
uint8_t thermo_short_circuited_gnd (thermo_t *ctx)
 Check short-circuited to GND function.
 
uint8_t thermo_check_connections (thermo_t *ctx)
 Check connections fault function.
 

Detailed Description

This file contains API for THERMO Click driver.