irthermo5v 2.0.0.0
IrThermo 5V Click Driver

API for configuring and manipulating IrThermo 5V Click driver. More...

Topics

 IrThermo 5V Registers Settings
 Settings for registers of IrThermo 5V Click driver.
 
 IrThermo 5V MikroBUS Map
 MikroBUS pin mapping of IrThermo 5V Click driver.
 

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

API for configuring and manipulating IrThermo 5V Click driver.

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Function Documentation

◆ irthermo5v_cfg_setup()

void irthermo5v_cfg_setup ( irthermo5v_cfg_t * cfg)

IrThermo 5V configuration object setup function.

This function initializes click configuration structure to initial values.

Parameters
[out]cfg: Click configuration structure. See irthermo5v_cfg_t object definition for detailed explanation.
Returns
Nothing.
Note
The all used pins will be set to unconnected state.

◆ irthermo5v_get_t_ambient()

float irthermo5v_get_t_ambient ( irthermo5v_t * ctx)

Reads Temperature ambient from sensor.

Function returns ambient temperature value in Celsius.

Parameters
[in]ctx: Click context object. See irthermo5v_t object definition for detailed explanation.
Returns
Ambient temperature value in Celsius.
Note
None.

◆ irthermo5v_get_t_object()

float irthermo5v_get_t_object ( irthermo5v_t * ctx)

Reads Temperature object1 from sensor.

Function returns object temperature value in Celsius.

Parameters
[in]ctx: Click context object. See irthermo5v_t object definition for detailed explanation.
Returns
Object temperature value in Celsius.
Note
None.

◆ irthermo5v_init()

err_t irthermo5v_init ( irthermo5v_t * ctx,
irthermo5v_cfg_t * cfg )

IrThermo 5V initialization function.

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

Parameters
[out]ctx: Click context object. See irthermo5v_t object definition for detailed explanation.
[in]cfg: Click configuration structure. See irthermo5v_cfg_t object definition for detailed explanation.
Returns
  • 0 - Success,
  • -1 - Error.
See #err_t definition for detailed explanation.
Note
None.

◆ irthermo5v_read_reg()

uint16_t irthermo5v_read_reg ( irthermo5v_t * ctx,
uint8_t address )

Generic function for reading values from RAM.

Function returns 16bit value of register.

Parameters
[in]ctx: Click context object. See irthermo5v_t object definition for detailed explanation.
[in]address: Address of register
Returns
16bit value of register.
Note
None.