irthermo5v 2.0.0.0
irthermo5v.h File Reference

This file contains API for IrThermo 5V 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  irthermo5v_t
 IrThermo 5V Click context object. More...
 
struct  irthermo5v_cfg_t
 IrThermo 5V Click configuration object. More...
 

Macros

#define IRTHERMO5V_SET_DEV_ADDR   0x5A
 IrThermo 5V device address setting.
 
#define IRTHERMO5V_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  irthermo5v_return_value_t { IRTHERMO5V_OK = 0 , IRTHERMO5V_ERROR = -1 }
 IrThermo 5V Click return value data. More...
 

Functions

void irthermo5v_cfg_setup (irthermo5v_cfg_t *cfg)
 IrThermo 5V configuration object setup function.
 
err_t irthermo5v_init (irthermo5v_t *ctx, irthermo5v_cfg_t *cfg)
 IrThermo 5V initialization function.
 
float irthermo5v_get_t_ambient (irthermo5v_t *ctx)
 Reads Temperature ambient from sensor.
 
float irthermo5v_get_t_object (irthermo5v_t *ctx)
 Reads Temperature object1 from sensor.
 
uint16_t irthermo5v_read_reg (irthermo5v_t *ctx, uint8_t address)
 Generic function for reading values from RAM.
 

Detailed Description

This file contains API for IrThermo 5V Click Driver.

Enumeration Type Documentation

◆ irthermo5v_return_value_t

IrThermo 5V Click return value data.

Predefined enum values for driver return values.

Enumerator
IRTHERMO5V_OK 
IRTHERMO5V_ERROR