irthermo5v 2.0.0.0
|
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. | |
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.
void irthermo5v_cfg_setup | ( | irthermo5v_cfg_t * | cfg | ) |
IrThermo 5V configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See irthermo5v_cfg_t object definition for detailed explanation. |
float irthermo5v_get_t_ambient | ( | irthermo5v_t * | ctx | ) |
Reads Temperature ambient from sensor.
Function returns ambient temperature value in Celsius.
[in] | ctx | : Click context object. See irthermo5v_t object definition for detailed explanation. |
float irthermo5v_get_t_object | ( | irthermo5v_t * | ctx | ) |
Reads Temperature object1 from sensor.
Function returns object temperature value in Celsius.
[in] | ctx | : Click context object. See irthermo5v_t object definition for detailed explanation. |
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.
[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. |
0
- Success, -1
- Error.uint16_t irthermo5v_read_reg | ( | irthermo5v_t * | ctx, |
uint8_t | address ) |
Generic function for reading values from RAM.
Function returns 16bit value of register.
[in] | ctx | : Click context object. See irthermo5v_t object definition for detailed explanation. |
[in] | address | : Address of register |