thermo16 2.0.0.0
thermo16.h File Reference

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

#include "drv_analog_in.h"

Go to the source code of this file.

Data Structures

struct  thermo16_t
 Click ctx object definition. More...
 
struct  thermo16_cfg_t
 Click configuration structure definition. More...
 

Macros

#define THERMO16_MAP_MIKROBUS(cfg, mikrobus)    cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN )
 
#define THERMO16_RETVAL   uint8_t
 
#define THERMO16_OK   0x00
 
#define THERMO16_INIT_ERROR   0xFF
 
#define THERMO16_TEMP_IN_CELSIUS   0x00
 
#define THERMO16_TEMP_IN_KELVIN   0x01
 
#define THERMO16_TEMP_IN_FAHRENHEIT   0x02
 

Typedefs

typedef uint16_t thermo16_data_t
 Analog data type.
 

Functions

void thermo16_cfg_setup (thermo16_cfg_t *cfg)
 Config Object Initialization function.
 
THERMO16_RETVAL thermo16_init (thermo16_t *ctx, thermo16_cfg_t *cfg)
 Initialization function.
 
thermo16_data_t thermo16_generic_read (thermo16_t *ctx)
 Generic read function.
 
float thermo16_get_temperature (thermo16_t *ctx, uint8_t temp_format)
 Temperature function.
 

Detailed Description

This file contains API for Thermo 16 Click driver.