thermo3 2.0.0.0
thermo3.h File Reference

This file contains API for Thermo 3 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"

Go to the source code of this file.

Data Structures

struct  thermo3_t
 Click ctx object definition. More...
 
struct  thermo3_cfg_t
 Click configuration structure definition. More...
 

Macros

#define THERMO3_MAP_MIKROBUS(cfg, mikrobus)
 
#define THERMO3_RETVAL   uint8_t
 
#define THERMO3_OK   0x00
 
#define THERMO3_INIT_ERROR   0xFF
 
#define TMP102_I2C_ADDR   0x48
 

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

This file contains API for Thermo 3 Click driver.