Go to the documentation of this file.
35 #include "drv_digital_out.h"
36 #include "drv_digital_in.h"
37 #include "drv_i2c_master.h"
60 #define IRTHERMO5V_SET_DEV_ADDR 0x5A
78 #define IRTHERMO5V_MAP_MIKROBUS( cfg, mikrobus ) \
79 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
80 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA ); \
81 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM )
100 uint8_t slave_address;
204 #endif // IRTHERMO5V_H
void irthermo5v_cfg_setup(irthermo5v_cfg_t *cfg)
IrThermo 5V configuration object setup function.
uint16_t irthermo5v_read_reg(irthermo5v_t *ctx, uint8_t address)
Generic function for reading values from RAM.
float irthermo5v_get_t_ambient(irthermo5v_t *ctx)
Reads Temperature ambient from sensor.
err_t irthermo5v_init(irthermo5v_t *ctx, irthermo5v_cfg_t *cfg)
IrThermo 5V initialization function.
IrThermo 5V Click configuration object.
Definition: irthermo5v.h:107
Definition: irthermo5v.h:125
IrThermo 5V Click context object.
Definition: irthermo5v.h:89
Definition: irthermo5v.h:126
irthermo5v_return_value_t
IrThermo 5V Click return value data.
Definition: irthermo5v.h:123
float irthermo5v_get_t_object(irthermo5v_t *ctx)
Reads Temperature object1 from sensor.