irthermo3v3
2.0.0.0
|
API for configuring and manipulating IrThermo 3V3 Click driver. More...
Modules | |
IrThermo 3V3 Registers Settings | |
Settings for registers of IrThermo 3V3 Click driver. | |
IrThermo 3V3 MikroBUS Map | |
MikroBUS pin mapping of IrThermo 3V3 Click driver. | |
Functions | |
void | irthermo3v3_cfg_setup (irthermo3v3_cfg_t *cfg) |
IrThermo 3V3 configuration object setup function. More... | |
err_t | irthermo3v3_init (irthermo3v3_t *ctx, irthermo3v3_cfg_t *cfg) |
IrThermo 3V3 initialization function. More... | |
float | irthermo3v3_get_t_ambient (irthermo3v3_t *ctx) |
Reads Temperature ambient from sensor. More... | |
float | irthermo3v3_get_t_object (irthermo3v3_t *ctx) |
Reads Temperature object1 from sensor. More... | |
uint16_t | irthermo3v3_read_reg (irthermo3v3_t *ctx, uint8_t address) |
Generic function for reading values from RAM. More... | |
API for configuring and manipulating IrThermo 3V3 Click driver.
void irthermo3v3_cfg_setup | ( | irthermo3v3_cfg_t * | cfg | ) |
IrThermo 3V3 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See irthermo3v3_cfg_t object definition for detailed explanation. |
float irthermo3v3_get_t_ambient | ( | irthermo3v3_t * | ctx | ) |
Reads Temperature ambient from sensor.
Function returns ambient temperature value in Celsius.
[in] | ctx | : Click context object. See irthermo3v3_t object definition for detailed explanation. |
float irthermo3v3_get_t_object | ( | irthermo3v3_t * | ctx | ) |
Reads Temperature object1 from sensor.
Function returns object temperature value in Celsius.
[in] | ctx | : Click context object. See irthermo3v3_t object definition for detailed explanation. |
err_t irthermo3v3_init | ( | irthermo3v3_t * | ctx, |
irthermo3v3_cfg_t * | cfg | ||
) |
IrThermo 3V3 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See irthermo3v3_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See irthermo3v3_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.uint16_t irthermo3v3_read_reg | ( | irthermo3v3_t * | ctx, |
uint8_t | address | ||
) |
Generic function for reading values from RAM.
Function returns 16bit value of register.
[in] | ctx | : Click context object. See irthermo3v3_t object definition for detailed explanation. |
[in] | address | : Address of register |