Go to the documentation of this file.
35 #include "mikrosdk_version.h"
38 #if mikroSDK_GET_VERSION < 20800ul
39 #include "rcu_delays.h"
45 #include "drv_digital_out.h"
46 #include "drv_digital_in.h"
47 #include "drv_i2c_master.h"
70 #define IRTHERMO5V_SET_DEV_ADDR 0x5A
88 #define IRTHERMO5V_MAP_MIKROBUS( cfg, mikrobus ) \
89 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
90 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA ); \
91 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM )
214 #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:125
digital_in_t pwm
Definition: irthermo5v.h:104
err_t irthermo5v_init(irthermo5v_t *ctx, irthermo5v_cfg_t *cfg)
IrThermo 5V initialization function.
IrThermo 5V Click configuration object.
Definition: irthermo5v.h:119
@ IRTHERMO5V_OK
Definition: irthermo5v.h:136
pin_name_t scl
Definition: irthermo5v.h:120
pin_name_t pwm
Definition: irthermo5v.h:123
IrThermo 5V Click context object.
Definition: irthermo5v.h:101
uint8_t slave_address
Definition: irthermo5v.h:110
pin_name_t sda
Definition: irthermo5v.h:121
uint8_t i2c_address
Definition: irthermo5v.h:126
@ IRTHERMO5V_ERROR
Definition: irthermo5v.h:137
irthermo5v_return_value_t
IrThermo 5V Click return value data.
Definition: irthermo5v.h:135
i2c_master_t i2c
Definition: irthermo5v.h:107
float irthermo5v_get_t_object(irthermo5v_t *ctx)
Reads Temperature object1 from sensor.