Go to the documentation of this file.
39 #ifdef PREINIT_SUPPORTED
43 #ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49 #include "drv_digital_out.h"
50 #include "drv_digital_in.h"
51 #include "drv_i2c_master.h"
74 #define IRTHERMO3V3_SET_DEV_ADDR 0x5A
92 #define IRTHERMO3V3_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
94 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA ); \
95 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM )
218 #endif // IRTHERMO3V3_H
i2c_master_t i2c
Definition: irthermo3v3.h:111
irthermo3v3_return_value_t
IrThermo 3V3 Click return value data.
Definition: irthermo3v3.h:139
float irthermo3v3_get_t_object(irthermo3v3_t *ctx)
Reads Temperature object1 from sensor.
pin_name_t sda
Definition: irthermo3v3.h:125
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:141
IrThermo 3V3 Click context object.
Definition: irthermo3v3.h:105
uint32_t i2c_speed
Definition: irthermo3v3.h:129
pin_name_t scl
Definition: irthermo3v3.h:124
pin_name_t pwm
Definition: irthermo3v3.h:127
@ IRTHERMO3V3_OK
Definition: irthermo3v3.h:140
uint8_t slave_address
Definition: irthermo3v3.h:114
float irthermo3v3_get_t_ambient(irthermo3v3_t *ctx)
Reads Temperature ambient from sensor.
IrThermo 3V3 Click configuration object.
Definition: irthermo3v3.h:123
digital_in_t pwm
Definition: irthermo3v3.h:108
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:130