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 )
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.
uint32_t i2c_speed
Definition: irthermo5v.h:115
digital_in_t pwm
Definition: irthermo5v.h:94
err_t irthermo5v_init(irthermo5v_t *ctx, irthermo5v_cfg_t *cfg)
IrThermo 5V initialization function.
IrThermo 5V Click configuration object.
Definition: irthermo5v.h:109
@ IRTHERMO5V_OK
Definition: irthermo5v.h:126
pin_name_t scl
Definition: irthermo5v.h:110
pin_name_t pwm
Definition: irthermo5v.h:113
IrThermo 5V Click context object.
Definition: irthermo5v.h:91
uint8_t slave_address
Definition: irthermo5v.h:100
pin_name_t sda
Definition: irthermo5v.h:111
uint8_t i2c_address
Definition: irthermo5v.h:116
@ IRTHERMO5V_ERROR
Definition: irthermo5v.h:127
irthermo5v_return_value_t
IrThermo 5V Click return value data.
Definition: irthermo5v.h:125
i2c_master_t i2c
Definition: irthermo5v.h:97
float irthermo5v_get_t_object(irthermo5v_t *ctx)
Reads Temperature object1 from sensor.