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"
81#define AIRVELOCITY_DEVICE_ADDRESS 0x28
99#define AIRVELOCITY_MAP_MIKROBUS( cfg, mikrobus ) \
100 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
101 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA );
airvelocity_return_value_t
Air Velocity Click return value data.
Definition airvelocity.h:139
@ AIRVELOCITY_OK
Definition airvelocity.h:140
@ AIRVELOCITY_ERROR
Definition airvelocity.h:141
err_t airvelocity_read_output(airvelocity_t *ctx, uint16_t *out_counts)
Air Velocity read output function.
void airvelocity_cfg_setup(airvelocity_cfg_t *cfg)
Air Velocity configuration object setup function.
err_t airvelocity_init(airvelocity_t *ctx, airvelocity_cfg_t *cfg)
Air Velocity initialization function.
float airvelocity_convert_counts_to_mps(uint16_t out_counts)
Air Velocity convert counts to mps function.
Air Velocity Click configuration object.
Definition airvelocity.h:125
uint32_t i2c_speed
Definition airvelocity.h:129
pin_name_t scl
Definition airvelocity.h:126
pin_name_t sda
Definition airvelocity.h:127
uint8_t i2c_address
Definition airvelocity.h:130
Air Velocity Click context object.
Definition airvelocity.h:111
i2c_master_t i2c
Definition airvelocity.h:113
uint8_t slave_address
Definition airvelocity.h:116