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 IRTHERMO3V3_SET_DEV_ADDR 0x5A
78 #define IRTHERMO3V3_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 // IRTHERMO3V3_H
i2c_master_t i2c
Definition: irthermo3v3.h:97
irthermo3v3_return_value_t
IrThermo 3V3 Click return value data.
Definition: irthermo3v3.h:125
float irthermo3v3_get_t_object(irthermo3v3_t *ctx)
Reads Temperature object1 from sensor.
pin_name_t sda
Definition: irthermo3v3.h:111
err_t irthermo3v3_init(irthermo3v3_t *ctx, irthermo3v3_cfg_t *cfg)
IrThermo 3V3 initialization function.
void irthermo3v3_cfg_setup(irthermo3v3_cfg_t *cfg)
IrThermo 3V3 configuration object setup function.
@ IRTHERMO3V3_ERROR
Definition: irthermo3v3.h:127
IrThermo 3V3 Click context object.
Definition: irthermo3v3.h:91
uint32_t i2c_speed
Definition: irthermo3v3.h:115
pin_name_t scl
Definition: irthermo3v3.h:110
pin_name_t pwm
Definition: irthermo3v3.h:113
@ IRTHERMO3V3_OK
Definition: irthermo3v3.h:126
uint8_t slave_address
Definition: irthermo3v3.h:100
float irthermo3v3_get_t_ambient(irthermo3v3_t *ctx)
Reads Temperature ambient from sensor.
IrThermo 3V3 Click configuration object.
Definition: irthermo3v3.h:109
digital_in_t pwm
Definition: irthermo3v3.h:94
uint16_t irthermo3v3_read_reg(irthermo3v3_t *ctx, uint8_t address)
Generic function for reading values from RAM.
uint8_t i2c_address
Definition: irthermo3v3.h:116